* [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning
@ 2019-04-04 15:58 Guenter Roeck
2019-04-04 15:58 ` [PATCH 02/24] hwmon: (pmbus/ucd900) " Guenter Roeck
` (22 more replies)
0 siblings, 23 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/pmbus/tps53679.c:100:34: warning:
‘tps53679_of_match’ defined but not used
Marking tps53679_of_match as __maybe_unused fixes the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/pmbus/tps53679.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/pmbus/tps53679.c b/drivers/hwmon/pmbus/tps53679.c
index 2bc352c5357f..3fd5105ee9ae 100644
--- a/drivers/hwmon/pmbus/tps53679.c
+++ b/drivers/hwmon/pmbus/tps53679.c
@@ -97,7 +97,7 @@ static const struct i2c_device_id tps53679_id[] = {
MODULE_DEVICE_TABLE(i2c, tps53679_id);
-static const struct of_device_id tps53679_of_match[] = {
+static const struct of_device_id __maybe_unused tps53679_of_match[] = {
{.compatible = "ti,tps53679"},
{}
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 02/24] hwmon: (pmbus/ucd900) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 03/24] hwmon: (ltc4151) " Guenter Roeck
` (21 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/pmbus/ucd9000.c:154:34: warning:
‘ucd9000_of_match’ defined but not used
Mark ucd9000_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/pmbus/ucd9000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c
index ae93885fccd8..40a3e3d0e661 100644
--- a/drivers/hwmon/pmbus/ucd9000.c
+++ b/drivers/hwmon/pmbus/ucd9000.c
@@ -151,7 +151,7 @@ static const struct i2c_device_id ucd9000_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ucd9000_id);
-static const struct of_device_id ucd9000_of_match[] = {
+static const struct of_device_id __maybe_unused ucd9000_of_match[] = {
{
.compatible = "ti,ucd9000",
.data = (void *)ucd9000
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 03/24] hwmon: (ltc4151) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 02/24] hwmon: (pmbus/ucd900) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 04/24] hwmon: (lm90) " Guenter Roeck
` (20 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ltc4151.c:211:34: warning:
‘ltc4151_match’ defined but not used
Mark ltc4151_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ltc4151.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ltc4151.c b/drivers/hwmon/ltc4151.c
index 76c6fda76d95..2b5cd37e6dc3 100644
--- a/drivers/hwmon/ltc4151.c
+++ b/drivers/hwmon/ltc4151.c
@@ -208,7 +208,7 @@ static const struct i2c_device_id ltc4151_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ltc4151_id);
-static const struct of_device_id ltc4151_match[] = {
+static const struct of_device_id __maybe_unused ltc4151_match[] = {
{ .compatible = "lltc,ltc4151" },
{},
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 04/24] hwmon: (lm90) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 02/24] hwmon: (pmbus/ucd900) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 03/24] hwmon: (ltc4151) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 05/24] hwmon: (adc128d818) " Guenter Roeck
` (19 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/lm90.c:239:34: warning:
‘lm90_of_match’ defined but not used
Mark lm90_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/lm90.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 0f9c22b21ffa..b99eda01696e 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -236,7 +236,7 @@ static const struct i2c_device_id lm90_id[] = {
};
MODULE_DEVICE_TABLE(i2c, lm90_id);
-static const struct of_device_id lm90_of_match[] = {
+static const struct of_device_id __maybe_unused lm90_of_match[] = {
{
.compatible = "adi,adm1032",
.data = (void *)adm1032
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 05/24] hwmon: (adc128d818) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (2 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 04/24] hwmon: (lm90) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 06/24] hwmon: (ad7414) " Guenter Roeck
` (18 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/adc128d818.c:524:34: warning:
‘adc128_of_match’ defined but not used
Mark adc128_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/adc128d818.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/adc128d818.c b/drivers/hwmon/adc128d818.c
index ca794bf904de..e640be442dae 100644
--- a/drivers/hwmon/adc128d818.c
+++ b/drivers/hwmon/adc128d818.c
@@ -521,7 +521,7 @@ static const struct i2c_device_id adc128_id[] = {
};
MODULE_DEVICE_TABLE(i2c, adc128_id);
-static const struct of_device_id adc128_of_match[] = {
+static const struct of_device_id __maybe_unused adc128_of_match[] = {
{ .compatible = "ti,adc128d818" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 06/24] hwmon: (ad7414) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (3 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 05/24] hwmon: (adc128d818) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 07/24] hwmon: (tmp102) " Guenter Roeck
` (17 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ad7414.c:218:34: warning:
‘ad7414_of_match’ defined but not used
Marking ad7414_of_match as __mayybe_unused fixes the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ad7414.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ad7414.c b/drivers/hwmon/ad7414.c
index f13806d731fa..b176da8e92a7 100644
--- a/drivers/hwmon/ad7414.c
+++ b/drivers/hwmon/ad7414.c
@@ -215,7 +215,7 @@ static const struct i2c_device_id ad7414_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ad7414_id);
-static const struct of_device_id ad7414_of_match[] = {
+static const struct of_device_id __maybe_unused ad7414_of_match[] = {
{ .compatible = "ad,ad7414" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 07/24] hwmon: (tmp102) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (4 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 06/24] hwmon: (ad7414) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 08/24] hwmon: (tmp103) " Guenter Roeck
` (16 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/tmp102.c:324:34: warning:
‘tmp102_of_match’ defined but not used
Mark it as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/tmp102.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c
index 213564aad005..f4ee55615dea 100644
--- a/drivers/hwmon/tmp102.c
+++ b/drivers/hwmon/tmp102.c
@@ -303,7 +303,7 @@ static const struct i2c_device_id tmp102_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tmp102_id);
-static const struct of_device_id tmp102_of_match[] = {
+static const struct of_device_id __maybe_unused tmp102_of_match[] = {
{ .compatible = "ti,tmp102" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 08/24] hwmon: (tmp103) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (5 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 07/24] hwmon: (tmp102) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 09/24] hwmon: (ads1015) " Guenter Roeck
` (15 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/tmp103.c:173:34: warning:
‘tmp103_of_match’ defined but not used
Marking tmp103_of_match as __maybe_unused fixes the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/tmp103.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c
index bda0fdc1eb53..a91726d33da8 100644
--- a/drivers/hwmon/tmp103.c
+++ b/drivers/hwmon/tmp103.c
@@ -170,7 +170,7 @@ static const struct i2c_device_id tmp103_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tmp103_id);
-static const struct of_device_id tmp103_of_match[] = {
+static const struct of_device_id __maybe_unused tmp103_of_match[] = {
{ .compatible = "ti,tmp103" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 09/24] hwmon: (ads1015) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (6 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 08/24] hwmon: (tmp103) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 10/24] hwmon: (adt7475) " Guenter Roeck
` (14 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ads1015.c:310:34: warning:
‘ads1015_of_match’ defined but not used
Marking ads1015_of_match as __maybe_unused fixes the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ads1015.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ads1015.c b/drivers/hwmon/ads1015.c
index c21b0529adb2..412ab7015d75 100644
--- a/drivers/hwmon/ads1015.c
+++ b/drivers/hwmon/ads1015.c
@@ -307,7 +307,7 @@ static const struct i2c_device_id ads1015_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ads1015_id);
-static const struct of_device_id ads1015_of_match[] = {
+static const struct of_device_id __maybe_unused ads1015_of_match[] = {
{
.compatible = "ti,ads1015",
.data = (void *)ads1015
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 10/24] hwmon: (adt7475) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (7 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 09/24] hwmon: (ads1015) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 11/24] hwmon: (hih6130) " Guenter Roeck
` (13 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/adt7475.c:171:34: warning:
‘adt7475_of_match’ defined but not used
Mark adt7475_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/adt7475.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
index 0dbb8df74e44..7caec127df86 100644
--- a/drivers/hwmon/adt7475.c
+++ b/drivers/hwmon/adt7475.c
@@ -168,7 +168,7 @@ static const struct i2c_device_id adt7475_id[] = {
};
MODULE_DEVICE_TABLE(i2c, adt7475_id);
-static const struct of_device_id adt7475_of_match[] = {
+static const struct of_device_id __maybe_unused adt7475_of_match[] = {
{
.compatible = "adi,adt7473",
.data = (void *)adt7473
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 11/24] hwmon: (hih6130) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (8 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 10/24] hwmon: (adt7475) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 12/24] hwmon: (ads7828) " Guenter Roeck
` (12 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/hih6130.c:255:34: warning:
‘hih6130_of_match’ defined but not used
Mark hih6130_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/hih6130.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c
index d167fcfec765..2bf9599b34a1 100644
--- a/drivers/hwmon/hih6130.c
+++ b/drivers/hwmon/hih6130.c
@@ -252,7 +252,7 @@ static const struct i2c_device_id hih6130_id[] = {
};
MODULE_DEVICE_TABLE(i2c, hih6130_id);
-static const struct of_device_id hih6130_of_match[] = {
+static const struct of_device_id __maybe_unused hih6130_of_match[] = {
{ .compatible = "honeywell,hih6130", },
{ }
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 12/24] hwmon: (ads7828) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (9 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 11/24] hwmon: (hih6130) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 13/24] hwmon: (w83773g) " Guenter Roeck
` (11 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ads7828.c:203:34: warning:
‘ads7828_of_match’ defined but not used
Mark ads7828_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ads7828.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
index 12c56d3783ed..e6be617e3fb2 100644
--- a/drivers/hwmon/ads7828.c
+++ b/drivers/hwmon/ads7828.c
@@ -200,7 +200,7 @@ static const struct i2c_device_id ads7828_device_ids[] = {
};
MODULE_DEVICE_TABLE(i2c, ads7828_device_ids);
-static const struct of_device_id ads7828_of_match[] = {
+static const struct of_device_id __maybe_unused ads7828_of_match[] = {
{
.compatible = "ti,ads7828",
.data = (void *)ads7828
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 13/24] hwmon: (w83773g) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (10 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 12/24] hwmon: (ads7828) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 14/24] hwmon: (lm75) " Guenter Roeck
` (10 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/w83773g.c:47:34: warning:
‘w83773_of_match’ defined but not used
Mark w83773_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/w83773g.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/w83773g.c b/drivers/hwmon/w83773g.c
index 1f34d885db52..d4105321e462 100644
--- a/drivers/hwmon/w83773g.c
+++ b/drivers/hwmon/w83773g.c
@@ -44,7 +44,7 @@ static const struct i2c_device_id w83773_id[] = {
MODULE_DEVICE_TABLE(i2c, w83773_id);
-static const struct of_device_id w83773_of_match[] = {
+static const struct of_device_id __maybe_unused w83773_of_match[] = {
{
.compatible = "nuvoton,w83773g"
},
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 14/24] hwmon: (lm75) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (11 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 13/24] hwmon: (w83773g) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 15/24] hwmon: (ina209) " Guenter Roeck
` (9 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/lm75.c:446:34: warning:
‘lm75_of_match’ defined but not used
Mark lm75_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/lm75.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 3155a04c997e..f307743edc25 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -419,7 +419,7 @@ static const struct i2c_device_id lm75_ids[] = {
};
MODULE_DEVICE_TABLE(i2c, lm75_ids);
-static const struct of_device_id lm75_of_match[] = {
+static const struct of_device_id __maybe_unused lm75_of_match[] = {
{
.compatible = "adi,adt75",
.data = (void *)adt75
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 15/24] hwmon: (ina209) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (12 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 14/24] hwmon: (lm75) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 16/24] hwmon: (max6697) " Guenter Roeck
` (8 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ina209.c:590:34: warning:
‘ina209_of_match’ defined but not used
Mark ina209_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ina209.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ina209.c b/drivers/hwmon/ina209.c
index e3854463db84..6a4ec2f2ddb2 100644
--- a/drivers/hwmon/ina209.c
+++ b/drivers/hwmon/ina209.c
@@ -587,7 +587,7 @@ static const struct i2c_device_id ina209_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ina209_id);
-static const struct of_device_id ina209_of_match[] = {
+static const struct of_device_id __maybe_unused ina209_of_match[] = {
{ .compatible = "ti,ina209" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 16/24] hwmon: (max6697) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (13 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 15/24] hwmon: (ina209) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 17/24] hwmon: (max6650) " Guenter Roeck
` (7 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/max6697.c:653:34: warning:
‘max6697_of_match’ defined but not used
Mark max6697_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/max6697.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c
index da43f7ae3de1..328793eaee3c 100644
--- a/drivers/hwmon/max6697.c
+++ b/drivers/hwmon/max6697.c
@@ -650,7 +650,7 @@ static const struct i2c_device_id max6697_id[] = {
};
MODULE_DEVICE_TABLE(i2c, max6697_id);
-static const struct of_device_id max6697_of_match[] = {
+static const struct of_device_id __maybe_unused max6697_of_match[] = {
{
.compatible = "maxim,max6581",
.data = (void *)max6581
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 17/24] hwmon: (max6650) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (14 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 16/24] hwmon: (max6697) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 18/24] hwmon: (lm85) " Guenter Roeck
` (6 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/max6650.c:137:34: warning:
‘max6650_dt_match’ defined but not used
Mark max6650_dt_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/max6650.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c
index 61135a2d0cff..95b234631e55 100644
--- a/drivers/hwmon/max6650.c
+++ b/drivers/hwmon/max6650.c
@@ -134,7 +134,7 @@ static const u8 tach_reg[] = {
MAX6650_REG_TACH3,
};
-static const struct of_device_id max6650_dt_match[] = {
+static const struct of_device_id __maybe_unused max6650_dt_match[] = {
{
.compatible = "maxim,max6650",
.data = (void *)1
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 18/24] hwmon: (lm85) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (15 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 17/24] hwmon: (max6650) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 19/24] hwmon: (max6621) " Guenter Roeck
` (5 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm85.c:1645:34: warning:
‘lm85_of_match’ defined but not used
Mark lm85_of_match as __maybe_unused to ix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/lm85.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index a95d48316f06..235bba054d47 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -1642,7 +1642,7 @@ static const struct i2c_device_id lm85_id[] = {
};
MODULE_DEVICE_TABLE(i2c, lm85_id);
-static const struct of_device_id lm85_of_match[] = {
+static const struct of_device_id __maybe_unused lm85_of_match[] = {
{
.compatible = "adi,adm1027",
.data = (void *)adm1027
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 19/24] hwmon: (max6621) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (16 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 18/24] hwmon: (lm85) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 20/24] hwmon: (stts751) " Guenter Roeck
` (4 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/max6621.c:573:34: warning:
‘max6621_of_match’ defined but not used
Mark max6621_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/max6621.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c
index 0c399e407de3..1810a753f1a3 100644
--- a/drivers/hwmon/max6621.c
+++ b/drivers/hwmon/max6621.c
@@ -552,7 +552,7 @@ static const struct i2c_device_id max6621_id[] = {
};
MODULE_DEVICE_TABLE(i2c, max6621_id);
-static const struct of_device_id max6621_of_match[] = {
+static const struct of_device_id __maybe_unused max6621_of_match[] = {
{ .compatible = "maxim,max6621" },
{ }
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 20/24] hwmon: (stts751) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (17 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 19/24] hwmon: (max6621) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 21/24] hwmon: (tmp421) " Guenter Roeck
` (3 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/stts751.c:88:34: warning:
‘stts751_of_match’ defined but not used
Mark stts751_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/stts751.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/stts751.c b/drivers/hwmon/stts751.c
index 90b60297f2f7..f670796b609a 100644
--- a/drivers/hwmon/stts751.c
+++ b/drivers/hwmon/stts751.c
@@ -85,7 +85,7 @@ static const struct i2c_device_id stts751_id[] = {
{ }
};
-static const struct of_device_id stts751_of_match[] = {
+static const struct of_device_id __maybe_unused stts751_of_match[] = {
{ .compatible = "stts751" },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 21/24] hwmon: (tmp421) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (18 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 20/24] hwmon: (stts751) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 22/24] hwmon: lm95245: Fix build warnings Guenter Roeck
` (2 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/tmp421.c:73:34: warning:
‘tmp421_of_match’ defined but not used
Mark tmp421_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/tmp421.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index 2732a71f3b39..5e63010dd3a0 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -70,7 +70,7 @@ static const struct i2c_device_id tmp421_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tmp421_id);
-static const struct of_device_id tmp421_of_match[] = {
+static const struct of_device_id __maybe_unused tmp421_of_match[] = {
{
.compatible = "ti,tmp421",
.data = (void *)2
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 22/24] hwmon: lm95245: Fix build warnings
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (19 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 21/24] hwmon: (tmp421) " Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 23/24] hwmon: (lm63) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 24/24] hwmon: (ina2xx) " Guenter Roeck
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm95245.c:626:34: warning:
‘lm95245_of_match’ defined but not used
Mark lm95245_of_match as __maybe_unused to fix the problem.
The following build warning is always seen.
drivers/hwmon/lm95245.c:95:17: warning:
‘lm95245_reg_address’ defined but not used
The array is no longer used since commit c0a4b9ec1b43 ("hwmon: (lm95245)
Use new hwmon registration API"). Remove it.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/lm95245.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c
index c7e04f28ac90..8d08ca8bbdf8 100644
--- a/drivers/hwmon/lm95245.c
+++ b/drivers/hwmon/lm95245.c
@@ -92,19 +92,6 @@ static const unsigned short normal_i2c[] = {
#define LM95235_REVISION 0xB1
#define LM95245_REVISION 0xB3
-static const u8 lm95245_reg_address[] = {
- LM95245_REG_R_LOCAL_TEMPH_S,
- LM95245_REG_R_LOCAL_TEMPL_S,
- LM95245_REG_R_REMOTE_TEMPH_S,
- LM95245_REG_R_REMOTE_TEMPL_S,
- LM95245_REG_R_REMOTE_TEMPH_U,
- LM95245_REG_R_REMOTE_TEMPL_U,
- LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT,
- LM95245_REG_RW_REMOTE_TCRIT_LIMIT,
- LM95245_REG_RW_COMMON_HYSTERESIS,
- LM95245_REG_R_STATUS1,
-};
-
/* Client data (each client gets its own) */
struct lm95245_data {
struct regmap *regmap;
@@ -607,7 +594,7 @@ static const struct i2c_device_id lm95245_id[] = {
};
MODULE_DEVICE_TABLE(i2c, lm95245_id);
-static const struct of_device_id lm95245_of_match[] = {
+static const struct of_device_id __maybe_unused lm95245_of_match[] = {
{ .compatible = "national,lm95235" },
{ .compatible = "national,lm95245" },
{ },
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 23/24] hwmon: (lm63) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (20 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 22/24] hwmon: lm95245: Fix build warnings Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
2019-04-04 15:58 ` [PATCH 24/24] hwmon: (ina2xx) " Guenter Roeck
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm63.c:1156:34: warning:
‘lm63_of_match’ defined but not used
Mark lm63_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/lm63.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index eac54b9cdeec..8848fbe5fd16 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -1153,7 +1153,7 @@ static const struct i2c_device_id lm63_id[] = {
};
MODULE_DEVICE_TABLE(i2c, lm63_id);
-static const struct of_device_id lm63_of_match[] = {
+static const struct of_device_id __maybe_unused lm63_of_match[] = {
{
.compatible = "national,lm63",
.data = (void *)lm63
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 24/24] hwmon: (ina2xx) Fix build warning
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
` (21 preceding siblings ...)
2019-04-04 15:58 ` [PATCH 23/24] hwmon: (lm63) Fix build warning Guenter Roeck
@ 2019-04-04 15:58 ` Guenter Roeck
22 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2019-04-04 15:58 UTC (permalink / raw)
To: Hardware Monitoring; +Cc: Jean Delvare, Guenter Roeck
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/ina2xx.c:510:34: warning:
‘ina2xx_of_match’ defined but not used
Mark ina2xx_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/ina2xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index 290379c49be9..42df51f8cdf2 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -507,7 +507,7 @@ static const struct i2c_device_id ina2xx_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ina2xx_id);
-static const struct of_device_id ina2xx_of_match[] = {
+static const struct of_device_id __maybe_unused ina2xx_of_match[] = {
{
.compatible = "ti,ina219",
.data = (void *)ina219
--
2.7.4
^ permalink raw reply related [flat|nested] 24+ messages in thread
end of thread, other threads:[~2019-04-04 15:59 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 02/24] hwmon: (pmbus/ucd900) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 03/24] hwmon: (ltc4151) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 04/24] hwmon: (lm90) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 05/24] hwmon: (adc128d818) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 06/24] hwmon: (ad7414) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 07/24] hwmon: (tmp102) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 08/24] hwmon: (tmp103) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 09/24] hwmon: (ads1015) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 10/24] hwmon: (adt7475) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 11/24] hwmon: (hih6130) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 12/24] hwmon: (ads7828) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 13/24] hwmon: (w83773g) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 14/24] hwmon: (lm75) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 15/24] hwmon: (ina209) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 16/24] hwmon: (max6697) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 17/24] hwmon: (max6650) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 18/24] hwmon: (lm85) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 19/24] hwmon: (max6621) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 20/24] hwmon: (stts751) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 21/24] hwmon: (tmp421) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 22/24] hwmon: lm95245: Fix build warnings Guenter Roeck
2019-04-04 15:58 ` [PATCH 23/24] hwmon: (lm63) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 24/24] hwmon: (ina2xx) " Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.