From 01daf71a4f57062055f68f8163ed1ad88fb47990 Mon Sep 17 00:00:00 2001 From: George Moussalem Date: Thu, 22 May 2025 09:48:51 +0400 Subject: [PATCH] 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 --- drivers/thermal/qcom/tsens-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.2