2021-02-02 11:33:55

by Alexandre Belloni

[permalink] [raw]
Subject: [PATCH 00/21] rtc: remove make W=1 warnings

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


2021-02-02 11:34:00

by Alexandre Belloni

[permalink] [raw]
Subject: [PATCH 01/21] rtc: class: remove bogus documentation

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

Signed-off-by: Alexandre Belloni <[email protected]>
---
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