All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/21] rtc: remove make W=1 warnings
@ 2021-02-02 11:21 Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 01/21] rtc: class: remove bogus documentation Alexandre Belloni
                   ` (20 more replies)
  0 siblings, 21 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:21 UTC (permalink / raw)
  To: linux-rtc; +Cc: linux-kernel, Alexandre Belloni

Hi,

This series removes some make W=1 warning, especially when CONFIG_OF is
not defined.

Alexandre Belloni (21):
  rtc: class: remove bogus documentation
  rtc: armada38x: depend on OF
  rtc: bq32k: quiet maybe-unused variable warning
  rtc: brcmstb-waketimer: quiet maybe-unused variable warning
  rtc: digicolor: quiet maybe-unused variable warning
  rtc: ds1672: quiet maybe-unused variable warning
  rtc: ds3232: quiet maybe-unused variable warning
  rtc: isl1208: quiet maybe-unused variable warning
  rtc: m41t80: quiet maybe-unused variable warning
  rtc: meson: quiet maybe-unused variable warning
  rtc: pcf85063: quiet maybe-unused variable warnings
  rtc: pcf85363: quiet maybe-unused variable warning
  rtc: rs5c372: quiet maybe-unused variable warning
  rtc: rv3028: quiet maybe-unused variable warning
  rtc: rv3029: quiet maybe-unused variable warning
  rtc: rv3032: quiet maybe-unused variable warning
  rtc: rv8803: quiet maybe-unused variable warning
  rtc: rx8010: quiet maybe-unused variable warning
  rtc: rx8581: quiet maybe-unused variable warning
  rtc: s35390a: quiet maybe-unused variable warning
  rtc: sd3078: quiet maybe-unused variable warning

 drivers/rtc/Kconfig                 |  1 +
 drivers/rtc/class.c                 |  5 ----
 drivers/rtc/rtc-bq32k.c             |  2 +-
 drivers/rtc/rtc-brcmstb-waketimer.c |  2 +-
 drivers/rtc/rtc-digicolor.c         |  2 +-
 drivers/rtc/rtc-ds1672.c            |  2 +-
 drivers/rtc/rtc-ds3232.c            |  2 +-
 drivers/rtc/rtc-isl1208.c           |  2 +-
 drivers/rtc/rtc-m41t80.c            |  2 +-
 drivers/rtc/rtc-meson.c             |  2 +-
 drivers/rtc/rtc-pcf85063.c          | 38 ++++++++++++++---------------
 drivers/rtc/rtc-pcf85363.c          |  2 +-
 drivers/rtc/rtc-rs5c372.c           |  2 +-
 drivers/rtc/rtc-rv3028.c            |  2 +-
 drivers/rtc/rtc-rv3029c2.c          |  2 +-
 drivers/rtc/rtc-rv3032.c            |  2 +-
 drivers/rtc/rtc-rv8803.c            |  2 +-
 drivers/rtc/rtc-rx8010.c            |  2 +-
 drivers/rtc/rtc-rx8581.c            |  2 +-
 drivers/rtc/rtc-s35390a.c           |  2 +-
 drivers/rtc/rtc-sd3078.c            |  2 +-
 21 files changed, 38 insertions(+), 42 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 35+ messages in thread

* [PATCH 01/21] rtc: class: remove bogus documentation
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
@ 2021-02-02 11:21 ` Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 02/21] rtc: armada38x: depend on OF Alexandre Belloni
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:21 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

rtc_device_unregister is gone since commit fdcfd854333b ("rtc: rework
rtc_register_device() resource management"). Remove its documentation.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/class.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 03abd0aa229a..f77bc089eb6b 100644
--- a/drivers/rtc/class.c
+++ b/drivers/rtc/class.c
@@ -324,11 +324,6 @@ static void rtc_device_get_offset(struct rtc_device *rtc)
 		rtc->offset_secs = 0;
 }
 
-/**
- * rtc_device_unregister - removes the previously registered RTC class device
- *
- * @rtc: the RTC class device to destroy
- */
 static void devm_rtc_unregister_device(void *data)
 {
 	struct rtc_device *rtc = data;
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 02/21] rtc: armada38x: depend on OF
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 01/21] rtc: class: remove bogus documentation Alexandre Belloni
@ 2021-02-02 11:21 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 03/21] rtc: bq32k: quiet maybe-unused variable warning Alexandre Belloni
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:21 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

The driver will compile with warning without OF because armada38x_data and
armada8k_data will be defined but not used. It would be possible to move
then in the #ifdef CONFIG_OF section but then their members will be defined
but not used. Instead of moving most of the driver in the #ifdef, simply
depend on OF.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index e1576754a50f..68ae202e0716 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1594,6 +1594,7 @@ config RTC_DRV_MV
 config RTC_DRV_ARMADA38X
 	tristate "Armada 38x Marvell SoC RTC"
 	depends on ARCH_MVEBU || COMPILE_TEST
+	depends on OF
 	help
 	  If you say yes here you will get support for the in-chip RTC
 	  that can be found in the Armada 38x Marvell's SoC device
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 03/21] rtc: bq32k: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 01/21] rtc: class: remove bogus documentation Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 02/21] rtc: armada38x: depend on OF Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22   ` Alexandre Belloni
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-bq32k.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index 933e4237237d..2235c968842d 100644
--- a/drivers/rtc/rtc-bq32k.c
+++ b/drivers/rtc/rtc-bq32k.c
@@ -311,7 +311,7 @@ static const struct i2c_device_id bq32k_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, bq32k_id);
 
-static const struct of_device_id bq32k_of_match[] = {
+static const __maybe_unused struct of_device_id bq32k_of_match[] = {
 	{ .compatible = "ti,bq32000" },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
@ 2021-02-02 11:22   ` Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 02/21] rtc: armada38x: depend on OF Alexandre Belloni
                     ` (19 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-brcmstb-waketimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c
index 0366e2ff04ae..c74130e8f496 100644
--- a/drivers/rtc/rtc-brcmstb-waketimer.c
+++ b/drivers/rtc/rtc-brcmstb-waketimer.c
@@ -306,7 +306,7 @@ static int brcmstb_waketmr_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(brcmstb_waketmr_pm_ops,
 			 brcmstb_waketmr_suspend, brcmstb_waketmr_resume);
 
-static const struct of_device_id brcmstb_waketmr_of_match[] = {
+static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = {
 	{ .compatible = "brcm,brcmstb-waketimer" },
 	{ /* sentinel */ },
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
@ 2021-02-02 11:22   ` Alexandre Belloni
  0 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-brcmstb-waketimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c
index 0366e2ff04ae..c74130e8f496 100644
--- a/drivers/rtc/rtc-brcmstb-waketimer.c
+++ b/drivers/rtc/rtc-brcmstb-waketimer.c
@@ -306,7 +306,7 @@ static int brcmstb_waketmr_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(brcmstb_waketmr_pm_ops,
 			 brcmstb_waketmr_suspend, brcmstb_waketmr_resume);
 
-static const struct of_device_id brcmstb_waketmr_of_match[] = {
+static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = {
 	{ .compatible = "brcm,brcmstb-waketimer" },
 	{ /* sentinel */ },
 };
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
@ 2021-02-02 11:22   ` Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 02/21] rtc: armada38x: depend on OF Alexandre Belloni
                     ` (19 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Baruch Siach
  Cc: linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-digicolor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
index 4fdfa5b6feb2..218a6de19247 100644
--- a/drivers/rtc/rtc-digicolor.c
+++ b/drivers/rtc/rtc-digicolor.c
@@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
 	return devm_rtc_register_device(rtc->rtc_dev);
 }
 
-static const struct of_device_id dc_dt_ids[] = {
+static const __maybe_unused struct of_device_id dc_dt_ids[] = {
 	{ .compatible = "cnxt,cx92755-rtc" },
 	{ /* sentinel */ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning
@ 2021-02-02 11:22   ` Alexandre Belloni
  0 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Baruch Siach
  Cc: linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-digicolor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
index 4fdfa5b6feb2..218a6de19247 100644
--- a/drivers/rtc/rtc-digicolor.c
+++ b/drivers/rtc/rtc-digicolor.c
@@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
 	return devm_rtc_register_device(rtc->rtc_dev);
 }
 
-static const struct of_device_id dc_dt_ids[] = {
+static const __maybe_unused struct of_device_id dc_dt_ids[] = {
 	{ .compatible = "cnxt,cx92755-rtc" },
 	{ /* sentinel */ }
 };
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 06/21] rtc: ds1672: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (4 preceding siblings ...)
  2021-02-02 11:22   ` Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 07/21] rtc: ds3232: " Alexandre Belloni
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-ds1672.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c
index 630493759d15..4cd8efbef6cf 100644
--- a/drivers/rtc/rtc-ds1672.c
+++ b/drivers/rtc/rtc-ds1672.c
@@ -139,7 +139,7 @@ static const struct i2c_device_id ds1672_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, ds1672_id);
 
-static const struct of_device_id ds1672_of_match[] = {
+static const __maybe_unused struct of_device_id ds1672_of_match[] = {
 	{ .compatible = "dallas,ds1672" },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 07/21] rtc: ds3232: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (5 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 06/21] rtc: ds1672: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 08/21] rtc: isl1208: " Alexandre Belloni
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-ds3232.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c
index 535e4a88fbb6..168bc27f1f5a 100644
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -592,7 +592,7 @@ static const struct i2c_device_id ds3232_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, ds3232_id);
 
-static const struct of_device_id ds3232_of_match[] = {
+static const  __maybe_unused struct of_device_id ds3232_of_match[] = {
 	{ .compatible = "dallas,ds3232" },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 08/21] rtc: isl1208: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (6 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 07/21] rtc: ds3232: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 09/21] rtc: m41t80: " Alexandre Belloni
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-isl1208.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c
index 563a6d9c9fcf..182dfa605515 100644
--- a/drivers/rtc/rtc-isl1208.c
+++ b/drivers/rtc/rtc-isl1208.c
@@ -99,7 +99,7 @@ static const struct i2c_device_id isl1208_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, isl1208_id);
 
-static const struct of_device_id isl1208_of_match[] = {
+static const __maybe_unused struct of_device_id isl1208_of_match[] = {
 	{ .compatible = "isil,isl1208", .data = &isl1208_configs[TYPE_ISL1208] },
 	{ .compatible = "isil,isl1209", .data = &isl1208_configs[TYPE_ISL1209] },
 	{ .compatible = "isil,isl1218", .data = &isl1208_configs[TYPE_ISL1218] },
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 09/21] rtc: m41t80: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (7 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 08/21] rtc: isl1208: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22   ` Alexandre Belloni
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-m41t80.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c
index ee0c1be0354e..cce5b5284658 100644
--- a/drivers/rtc/rtc-m41t80.c
+++ b/drivers/rtc/rtc-m41t80.c
@@ -85,7 +85,7 @@ static const struct i2c_device_id m41t80_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, m41t80_id);
 
-static const struct of_device_id m41t80_of_match[] = {
+static const __maybe_unused struct of_device_id m41t80_of_match[] = {
 	{
 		.compatible = "st,m41t62",
 		.data = (void *)(M41T80_FEATURE_SQ | M41T80_FEATURE_SQ_ALT)
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
  2021-02-02 11:21 ` [PATCH 01/21] rtc: class: remove bogus documentation Alexandre Belloni
@ 2021-02-02 11:22   ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 03/21] rtc: bq32k: quiet maybe-unused variable warning Alexandre Belloni
                     ` (18 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Kevin Hilman,
	Neil Armstrong, Jerome Brunet, Martin Blumenstingl
  Cc: linux-kernel, linux-arm-kernel, linux-amlogic

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
index 8642c06565ea..44bdc8b4a90d 100644
--- a/drivers/rtc/rtc-meson.c
+++ b/drivers/rtc/rtc-meson.c
@@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static const struct of_device_id meson_rtc_dt_match[] = {
+static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
 	{ .compatible = "amlogic,meson6-rtc", },
 	{ .compatible = "amlogic,meson8-rtc", },
 	{ .compatible = "amlogic,meson8b-rtc", },
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
@ 2021-02-02 11:22   ` Alexandre Belloni
  0 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Kevin Hilman,
	Neil Armstrong, Jerome Brunet, Martin Blumenstingl
  Cc: linux-amlogic, linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
index 8642c06565ea..44bdc8b4a90d 100644
--- a/drivers/rtc/rtc-meson.c
+++ b/drivers/rtc/rtc-meson.c
@@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static const struct of_device_id meson_rtc_dt_match[] = {
+static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
 	{ .compatible = "amlogic,meson6-rtc", },
 	{ .compatible = "amlogic,meson8-rtc", },
 	{ .compatible = "amlogic,meson8b-rtc", },
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
@ 2021-02-02 11:22   ` Alexandre Belloni
  0 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni, Kevin Hilman,
	Neil Armstrong, Jerome Brunet, Martin Blumenstingl
  Cc: linux-amlogic, linux-kernel, linux-arm-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
index 8642c06565ea..44bdc8b4a90d 100644
--- a/drivers/rtc/rtc-meson.c
+++ b/drivers/rtc/rtc-meson.c
@@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static const struct of_device_id meson_rtc_dt_match[] = {
+static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
 	{ .compatible = "amlogic,meson6-rtc", },
 	{ .compatible = "amlogic,meson8-rtc", },
 	{ .compatible = "amlogic,meson8b-rtc", },
-- 
2.29.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 11/21] rtc: pcf85063: quiet maybe-unused variable warnings
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (9 preceding siblings ...)
  2021-02-02 11:22   ` Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 12/21] rtc: pcf85363: quiet maybe-unused variable warning Alexandre Belloni
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

pcf85063a_config and rv8263_config are only referenced by
pcf85063_of_match, move them in the #ifdef CONFIG_OF section.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-pcf85063.c | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c
index f7e7c9eb0781..aef6c1ee8bb0 100644
--- a/drivers/rtc/rtc-pcf85063.c
+++ b/drivers/rtc/rtc-pcf85063.c
@@ -501,15 +501,6 @@ static struct clk *pcf85063_clkout_register_clk(struct pcf85063 *pcf85063)
 }
 #endif
 
-static const struct pcf85063_config pcf85063a_config = {
-	.regmap = {
-		.reg_bits = 8,
-		.val_bits = 8,
-		.max_register = 0x11,
-	},
-	.has_alarms = 1,
-};
-
 static const struct pcf85063_config pcf85063tp_config = {
 	.regmap = {
 		.reg_bits = 8,
@@ -518,16 +509,6 @@ static const struct pcf85063_config pcf85063tp_config = {
 	},
 };
 
-static const struct pcf85063_config rv8263_config = {
-	.regmap = {
-		.reg_bits = 8,
-		.val_bits = 8,
-		.max_register = 0x11,
-	},
-	.has_alarms = 1,
-	.force_cap_7000 = 1,
-};
-
 static int pcf85063_probe(struct i2c_client *client)
 {
 	struct pcf85063 *pcf85063;
@@ -611,6 +592,25 @@ static int pcf85063_probe(struct i2c_client *client)
 }
 
 #ifdef CONFIG_OF
+static const struct pcf85063_config pcf85063a_config = {
+	.regmap = {
+		.reg_bits = 8,
+		.val_bits = 8,
+		.max_register = 0x11,
+	},
+	.has_alarms = 1,
+};
+
+static const struct pcf85063_config rv8263_config = {
+	.regmap = {
+		.reg_bits = 8,
+		.val_bits = 8,
+		.max_register = 0x11,
+	},
+	.has_alarms = 1,
+	.force_cap_7000 = 1,
+};
+
 static const struct of_device_id pcf85063_of_match[] = {
 	{ .compatible = "nxp,pcf85063", .data = &pcf85063tp_config },
 	{ .compatible = "nxp,pcf85063tp", .data = &pcf85063tp_config },
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 12/21] rtc: pcf85363: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (10 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 11/21] rtc: pcf85063: quiet maybe-unused variable warnings Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 13/21] rtc: rs5c372: " Alexandre Belloni
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-pcf85363.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
index 8c2dcbac0d7b..bb3e9ba75f6c 100644
--- a/drivers/rtc/rtc-pcf85363.c
+++ b/drivers/rtc/rtc-pcf85363.c
@@ -424,7 +424,7 @@ static int pcf85363_probe(struct i2c_client *client,
 	return ret;
 }
 
-static const struct of_device_id dev_ids[] = {
+static const __maybe_unused struct of_device_id dev_ids[] = {
 	{ .compatible = "nxp,pcf85263", .data = &pcf_85263_config },
 	{ .compatible = "nxp,pcf85363", .data = &pcf_85363_config },
 	{ /* sentinel */ }
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 13/21] rtc: rs5c372: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (11 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 12/21] rtc: pcf85363: quiet maybe-unused variable warning Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 14/21] rtc: rv3028: " Alexandre Belloni
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rs5c372.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c
index 3bd6eaa0dcf6..80980414890c 100644
--- a/drivers/rtc/rtc-rs5c372.c
+++ b/drivers/rtc/rtc-rs5c372.c
@@ -83,7 +83,7 @@ static const struct i2c_device_id rs5c372_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rs5c372_id);
 
-static const struct of_device_id rs5c372_of_match[] = {
+static const __maybe_unused struct of_device_id rs5c372_of_match[] = {
 	{
 		.compatible = "ricoh,r2025sd",
 		.data = (void *)rtc_r2025sd
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 14/21] rtc: rv3028: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (12 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 13/21] rtc: rs5c372: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 15/21] rtc: rv3029: " Alexandre Belloni
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rv3028.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c
index 2ee2afa3fa66..0c48d980d06a 100644
--- a/drivers/rtc/rtc-rv3028.c
+++ b/drivers/rtc/rtc-rv3028.c
@@ -898,7 +898,7 @@ static int rv3028_probe(struct i2c_client *client)
 	return 0;
 }
 
-static const struct of_device_id rv3028_of_match[] = {
+static const __maybe_unused struct of_device_id rv3028_of_match[] = {
 	{ .compatible = "microcrystal,rv3028", },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 15/21] rtc: rv3029: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (13 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 14/21] rtc: rv3028: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 16/21] rtc: rv3032: " Alexandre Belloni
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rv3029c2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/rtc-rv3029c2.c
index 71102c7fbd7d..8cb84c9595fc 100644
--- a/drivers/rtc/rtc-rv3029c2.c
+++ b/drivers/rtc/rtc-rv3029c2.c
@@ -808,7 +808,7 @@ static const struct i2c_device_id rv3029_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rv3029_id);
 
-static const struct of_device_id rv3029_of_match[] = {
+static const __maybe_unused struct of_device_id rv3029_of_match[] = {
 	{ .compatible = "microcrystal,rv3029" },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 16/21] rtc: rv3032: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (14 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 15/21] rtc: rv3029: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 17/21] rtc: rv8803: " Alexandre Belloni
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rv3032.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rv3032.c b/drivers/rtc/rtc-rv3032.c
index 5161016bce00..d63102d5cb1e 100644
--- a/drivers/rtc/rtc-rv3032.c
+++ b/drivers/rtc/rtc-rv3032.c
@@ -906,7 +906,7 @@ static int rv3032_probe(struct i2c_client *client)
 	return 0;
 }
 
-static const struct of_device_id rv3032_of_match[] = {
+static const __maybe_unused struct of_device_id rv3032_of_match[] = {
 	{ .compatible = "microcrystal,rv3032", },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 17/21] rtc: rv8803: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (15 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 16/21] rtc: rv3032: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 18/21] rtc: rx8010: " Alexandre Belloni
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rv8803.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c
index 8821264e9385..72adef5a5ebe 100644
--- a/drivers/rtc/rtc-rv8803.c
+++ b/drivers/rtc/rtc-rv8803.c
@@ -607,7 +607,7 @@ static const struct i2c_device_id rv8803_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rv8803_id);
 
-static const struct of_device_id rv8803_of_match[] = {
+static const __maybe_unused struct of_device_id rv8803_of_match[] = {
 	{
 		.compatible = "microcrystal,rv8803",
 		.data = (void *)rv_8803
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 18/21] rtc: rx8010: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (16 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 17/21] rtc: rv8803: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 19/21] rtc: rx8581: " Alexandre Belloni
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rx8010.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c
index 95e751c8048e..d09056570739 100644
--- a/drivers/rtc/rtc-rx8010.c
+++ b/drivers/rtc/rtc-rx8010.c
@@ -55,7 +55,7 @@ static const struct i2c_device_id rx8010_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rx8010_id);
 
-static const struct of_device_id rx8010_of_match[] = {
+static const __maybe_unused struct of_device_id rx8010_of_match[] = {
 	{ .compatible = "epson,rx8010" },
 	{ }
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 19/21] rtc: rx8581: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (17 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 18/21] rtc: rx8010: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 20/21] rtc: s35390a: " Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 21/21] rtc: sd3078: " Alexandre Belloni
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-rx8581.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rx8581.c b/drivers/rtc/rtc-rx8581.c
index de109139529b..aed4898a0ff4 100644
--- a/drivers/rtc/rtc-rx8581.c
+++ b/drivers/rtc/rtc-rx8581.c
@@ -314,7 +314,7 @@ static const struct i2c_device_id rx8581_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rx8581_id);
 
-static const struct of_device_id rx8581_of_match[] = {
+static const __maybe_unused struct of_device_id rx8581_of_match[] = {
 	{ .compatible = "epson,rx8571", .data = &rx8571_config },
 	{ .compatible = "epson,rx8581", .data = &rx8581_config },
 	{ /* sentinel */ }
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 20/21] rtc: s35390a: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (18 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 19/21] rtc: rx8581: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  2021-02-02 11:22 ` [PATCH 21/21] rtc: sd3078: " Alexandre Belloni
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-s35390a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s35390a.c
index ea15d0392bb9..b5bdeda7d767 100644
--- a/drivers/rtc/rtc-s35390a.c
+++ b/drivers/rtc/rtc-s35390a.c
@@ -55,7 +55,7 @@ static const struct i2c_device_id s35390a_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, s35390a_id);
 
-static const struct of_device_id s35390a_of_match[] = {
+static const __maybe_unused struct of_device_id s35390a_of_match[] = {
 	{ .compatible = "s35390a" },
 	{ .compatible = "sii,s35390a" },
 	{ }
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH 21/21] rtc: sd3078: quiet maybe-unused variable warning
  2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
                   ` (19 preceding siblings ...)
  2021-02-02 11:22 ` [PATCH 20/21] rtc: s35390a: " Alexandre Belloni
@ 2021-02-02 11:22 ` Alexandre Belloni
  20 siblings, 0 replies; 35+ messages in thread
From: Alexandre Belloni @ 2021-02-02 11:22 UTC (permalink / raw)
  To: linux-rtc, Dianlong Li, Alessandro Zummo, Alexandre Belloni; +Cc: linux-kernel

When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-sd3078.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-sd3078.c b/drivers/rtc/rtc-sd3078.c
index f6bee69ba017..24e8528e23ec 100644
--- a/drivers/rtc/rtc-sd3078.c
+++ b/drivers/rtc/rtc-sd3078.c
@@ -207,7 +207,7 @@ static const struct i2c_device_id sd3078_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, sd3078_id);
 
-static const struct of_device_id rtc_dt_match[] = {
+static const __maybe_unused struct of_device_id rtc_dt_match[] = {
 	{ .compatible = "whwave,sd3078" },
 	{},
 };
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 35+ messages in thread

* Re: [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning
  2021-02-02 11:22   ` Alexandre Belloni
@ 2021-02-02 11:32     ` Baruch Siach
  -1 siblings, 0 replies; 35+ messages in thread
From: Baruch Siach @ 2021-02-02 11:32 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: linux-rtc, Alessandro Zummo, linux-kernel, linux-arm-kernel

Hi Alex,

On Tue, Feb 02 2021, Alexandre Belloni wrote:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Baruch Siach <baruch@tkos.co.il>

Thanks,
baruch

> ---
>  drivers/rtc/rtc-digicolor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
> index 4fdfa5b6feb2..218a6de19247 100644
> --- a/drivers/rtc/rtc-digicolor.c
> +++ b/drivers/rtc/rtc-digicolor.c
> @@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
>  	return devm_rtc_register_device(rtc->rtc_dev);
>  }
>  
> -static const struct of_device_id dc_dt_ids[] = {
> +static const __maybe_unused struct of_device_id dc_dt_ids[] = {
>  	{ .compatible = "cnxt,cx92755-rtc" },
>  	{ /* sentinel */ }
>  };


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning
@ 2021-02-02 11:32     ` Baruch Siach
  0 siblings, 0 replies; 35+ messages in thread
From: Baruch Siach @ 2021-02-02 11:32 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: linux-rtc, Alessandro Zummo, linux-kernel, linux-arm-kernel

Hi Alex,

On Tue, Feb 02 2021, Alexandre Belloni wrote:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Baruch Siach <baruch@tkos.co.il>

Thanks,
baruch

> ---
>  drivers/rtc/rtc-digicolor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
> index 4fdfa5b6feb2..218a6de19247 100644
> --- a/drivers/rtc/rtc-digicolor.c
> +++ b/drivers/rtc/rtc-digicolor.c
> @@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
>  	return devm_rtc_register_device(rtc->rtc_dev);
>  }
>  
> -static const struct of_device_id dc_dt_ids[] = {
> +static const __maybe_unused struct of_device_id dc_dt_ids[] = {
>  	{ .compatible = "cnxt,cx92755-rtc" },
>  	{ /* sentinel */ }
>  };


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
  2021-02-02 11:22   ` Alexandre Belloni
  (?)
@ 2021-02-02 16:26     ` Kevin Hilman
  -1 siblings, 0 replies; 35+ messages in thread
From: Kevin Hilman @ 2021-02-02 16:26 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo,
	Alexandre Belloni, Neil Armstrong, Jerome Brunet,
	Martin Blumenstingl
  Cc: linux-kernel, linux-arm-kernel, linux-amlogic

Alexandre Belloni <alexandre.belloni@bootlin.com> writes:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/rtc/rtc-meson.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
> index 8642c06565ea..44bdc8b4a90d 100644
> --- a/drivers/rtc/rtc-meson.c
> +++ b/drivers/rtc/rtc-meson.c
> @@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
>  	return ret;
>  }
>  
> -static const struct of_device_id meson_rtc_dt_match[] = {
> +static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
>  	{ .compatible = "amlogic,meson6-rtc", },
>  	{ .compatible = "amlogic,meson8-rtc", },
>  	{ .compatible = "amlogic,meson8b-rtc", },
> -- 
> 2.29.2

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
@ 2021-02-02 16:26     ` Kevin Hilman
  0 siblings, 0 replies; 35+ messages in thread
From: Kevin Hilman @ 2021-02-02 16:26 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo,
	Alexandre Belloni, Neil Armstrong, Jerome Brunet,
	Martin Blumenstingl
  Cc: linux-amlogic, linux-kernel, linux-arm-kernel

Alexandre Belloni <alexandre.belloni@bootlin.com> writes:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/rtc/rtc-meson.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
> index 8642c06565ea..44bdc8b4a90d 100644
> --- a/drivers/rtc/rtc-meson.c
> +++ b/drivers/rtc/rtc-meson.c
> @@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
>  	return ret;
>  }
>  
> -static const struct of_device_id meson_rtc_dt_match[] = {
> +static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
>  	{ .compatible = "amlogic,meson6-rtc", },
>  	{ .compatible = "amlogic,meson8-rtc", },
>  	{ .compatible = "amlogic,meson8b-rtc", },
> -- 
> 2.29.2

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 10/21] rtc: meson: quiet maybe-unused variable warning
@ 2021-02-02 16:26     ` Kevin Hilman
  0 siblings, 0 replies; 35+ messages in thread
From: Kevin Hilman @ 2021-02-02 16:26 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo,
	Alexandre Belloni, Neil Armstrong, Jerome Brunet,
	Martin Blumenstingl
  Cc: linux-amlogic, linux-kernel, linux-arm-kernel

Alexandre Belloni <alexandre.belloni@bootlin.com> writes:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/rtc/rtc-meson.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
> index 8642c06565ea..44bdc8b4a90d 100644
> --- a/drivers/rtc/rtc-meson.c
> +++ b/drivers/rtc/rtc-meson.c
> @@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
>  	return ret;
>  }
>  
> -static const struct of_device_id meson_rtc_dt_match[] = {
> +static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
>  	{ .compatible = "amlogic,meson6-rtc", },
>  	{ .compatible = "amlogic,meson8-rtc", },
>  	{ .compatible = "amlogic,meson8b-rtc", },
> -- 
> 2.29.2

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
  2021-02-02 11:22   ` Alexandre Belloni
@ 2021-02-02 17:22     ` Florian Fainelli
  -1 siblings, 0 replies; 35+ messages in thread
From: Florian Fainelli @ 2021-02-02 17:22 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

On 2/2/21 3:22 AM, Alexandre Belloni wrote:
> When CONFIG_OF is disabled then the matching table is not referenced.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4178 bytes --]

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
@ 2021-02-02 17:22     ` Florian Fainelli
  0 siblings, 0 replies; 35+ messages in thread
From: Florian Fainelli @ 2021-02-02 17:22 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 249 bytes --]

On 2/2/21 3:22 AM, Alexandre Belloni wrote:
> When CONFIG_OF is disabled then the matching table is not referenced.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4178 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
  2021-02-02 11:22   ` Alexandre Belloni
@ 2021-02-02 17:23     ` Florian Fainelli
  -1 siblings, 0 replies; 35+ messages in thread
From: Florian Fainelli @ 2021-02-02 17:23 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel

On 2/2/21 3:22 AM, Alexandre Belloni wrote:
> When CONFIG_OF is disabled then the matching table is not referenced.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning
@ 2021-02-02 17:23     ` Florian Fainelli
  0 siblings, 0 replies; 35+ messages in thread
From: Florian Fainelli @ 2021-02-02 17:23 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc, Alessandro Zummo, Florian Fainelli,
	bcm-kernel-feedback-list
  Cc: linux-kernel, linux-arm-kernel

On 2/2/21 3:22 AM, Alexandre Belloni wrote:
> When CONFIG_OF is disabled then the matching table is not referenced.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2021-02-02 17:27 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 11:21 [PATCH 00/21] rtc: remove make W=1 warnings Alexandre Belloni
2021-02-02 11:21 ` [PATCH 01/21] rtc: class: remove bogus documentation Alexandre Belloni
2021-02-02 11:21 ` [PATCH 02/21] rtc: armada38x: depend on OF Alexandre Belloni
2021-02-02 11:22 ` [PATCH 03/21] rtc: bq32k: quiet maybe-unused variable warning Alexandre Belloni
2021-02-02 11:22 ` [PATCH 04/21] rtc: brcmstb-waketimer: " Alexandre Belloni
2021-02-02 11:22   ` Alexandre Belloni
2021-02-02 17:22   ` Florian Fainelli
2021-02-02 17:22     ` Florian Fainelli
2021-02-02 17:23   ` Florian Fainelli
2021-02-02 17:23     ` Florian Fainelli
2021-02-02 11:22 ` [PATCH 05/21] rtc: digicolor: " Alexandre Belloni
2021-02-02 11:22   ` Alexandre Belloni
2021-02-02 11:32   ` Baruch Siach
2021-02-02 11:32     ` Baruch Siach
2021-02-02 11:22 ` [PATCH 06/21] rtc: ds1672: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 07/21] rtc: ds3232: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 08/21] rtc: isl1208: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 09/21] rtc: m41t80: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 10/21] rtc: meson: " Alexandre Belloni
2021-02-02 11:22   ` Alexandre Belloni
2021-02-02 11:22   ` Alexandre Belloni
2021-02-02 16:26   ` Kevin Hilman
2021-02-02 16:26     ` Kevin Hilman
2021-02-02 16:26     ` Kevin Hilman
2021-02-02 11:22 ` [PATCH 11/21] rtc: pcf85063: quiet maybe-unused variable warnings Alexandre Belloni
2021-02-02 11:22 ` [PATCH 12/21] rtc: pcf85363: quiet maybe-unused variable warning Alexandre Belloni
2021-02-02 11:22 ` [PATCH 13/21] rtc: rs5c372: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 14/21] rtc: rv3028: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 15/21] rtc: rv3029: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 16/21] rtc: rv3032: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 17/21] rtc: rv8803: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 18/21] rtc: rx8010: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 19/21] rtc: rx8581: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 20/21] rtc: s35390a: " Alexandre Belloni
2021-02-02 11:22 ` [PATCH 21/21] rtc: sd3078: " Alexandre Belloni

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.