thermal: tegra: Make tegra210_tsensor_thermtrips static [Linux 5.2]

thermal: tegra: Make tegra210_tsensor_thermtrips static [Linux 5.2]

This Linux kernel change "thermal: tegra: Make tegra210_tsensor_thermtrips static" is included in the Linux 5.2 release. This change is authored by YueHaibing <yuehaibing [at] huawei.com> on Mon May 13 21:55:59 2019 +0800. The commit for this change in Linux stable tree is 2380a79 (patch).

thermal: tegra: Make tegra210_tsensor_thermtrips static

Fix sparse warning:

drivers/thermal/tegra/tegra210-soctherm.c:211:33: warning:
 symbol 'tegra210_tsensor_thermtrips' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/thermal/tegra/tegra210-soctherm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/tegra/tegra210-soctherm.c b/drivers/thermal/tegra/tegra210-soctherm.c
index d31b500..d0ff793 100644
--- a/drivers/thermal/tegra/tegra210-soctherm.c
+++ b/drivers/thermal/tegra/tegra210-soctherm.c
@@ -208,7 +208,7 @@
    .fuse_spare_realignment = 0,
 };

-struct tsensor_group_thermtrips tegra210_tsensor_thermtrips[] = {
+static struct tsensor_group_thermtrips tegra210_tsensor_thermtrips[] = {
    {.id = TEGRA124_SOCTHERM_SENSOR_NUM},
    {.id = TEGRA124_SOCTHERM_SENSOR_NUM},
    {.id = TEGRA124_SOCTHERM_SENSOR_NUM},

Leave a Reply

Your email address will not be published. Required fields are marked *