From: George Moussalem Date: Thu, 22 May 2025 05:48:51 +0000 (+0400) Subject: thermal: qcom: ipq5018: make ops_ipq5018 struct static X-Git-Tag: v6.16-rc1~162^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01daf71a4f57062055f68f8163ed1ad88fb47990;p=thirdparty%2Fkernel%2Flinux.git thermal: qcom: ipq5018: make ops_ipq5018 struct static Fix a sparse warning by making the ops_ipq5018 struct static. Fixes: 04b31cc53fe0 ("thermal/drivers/qcom/tsens: Add support for IPQ5018 tsens") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202505202356.S21Sc7bk-lkp@intel.com/ Signed-off-by: George Moussalem Reviewed-by: Dmitry Baryshkov Link: https://patch.msgid.link/20250522-ipq5018-tsens-sparse-v1-1-97edaaaef27c@outlook.com Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c index 27360e70d62a9..faa5d00788ca6 100644 --- a/drivers/thermal/qcom/tsens-v1.c +++ b/drivers/thermal/qcom/tsens-v1.c @@ -243,7 +243,7 @@ struct tsens_plat_data data_8976 = { .fields = tsens_v1_regfields, }; -const struct tsens_ops ops_ipq5018 = { +static const struct tsens_ops ops_ipq5018 = { .init = init_tsens_v1_no_rpm, .calibrate = tsens_calibrate_common, .get_temp = get_temp_tsens_valid,