]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
thermal: qcom: ipq5018: make ops_ipq5018 struct static
authorGeorge Moussalem <george.moussalem@outlook.com>
Thu, 22 May 2025 05:48:51 +0000 (09:48 +0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 May 2025 15:18:05 +0000 (17:18 +0200)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505202356.S21Sc7bk-lkp@intel.com/
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20250522-ipq5018-tsens-sparse-v1-1-97edaaaef27c@outlook.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/qcom/tsens-v1.c

index 27360e70d62a94e52e67f5aaa45457be165bfeb3..faa5d00788ca6fb29b367857d27596578218358e 100644 (file)
@@ -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,