[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220609133303.1591300-1-zhengbin13@huawei.com>
Date: Thu, 9 Jun 2022 21:33:03 +0800
From: Zheng Bin <zhengbin13@...wei.com>
To: <hdegoede@...hat.com>, <markgross@...nel.org>, <vadimp@...dia.com>,
<platform-driver-x86@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <zhengbin13@...wei.com>, <gaochao49@...wei.com>
Subject: [PATCH -next] platform/mellanox: make symbol 'nvsw_sn2201_i2c_data' static
Fix sparse warnings:
drivers/platform/mellanox/nvsw-sn2201.c: symbol 'nvsw_sn2201_i2c_data' was not declared. Should it be static?
Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
---
drivers/platform/mellanox/nvsw-sn2201.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c
index 0bcdc7c75007..2923daf63b75 100644
--- a/drivers/platform/mellanox/nvsw-sn2201.c
+++ b/drivers/platform/mellanox/nvsw-sn2201.c
@@ -326,7 +326,7 @@ static struct resource nvsw_sn2201_lpc_res[] = {
};
/* SN2201 I2C platform data. */
-struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = {
+static struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = {
.irq = NVSW_SN2201_CPLD_SYSIRQ,
};
--
2.31.1
Powered by blists - more mailing lists