* [PATCH] rtc: remove unused function
@ 2021-04-15 8:37 Jiapeng Chong
2021-04-16 23:15 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-15 8:37 UTC (permalink / raw)
To: a.zummo; +Cc: alexandre.belloni, linux-rtc, linux-kernel, Jiapeng Chong
Fix the following clang warning:
drivers/rtc/rtc-ds1511.c:108:1: warning: unused function
'rtc_write_alarm' [-Wunused-function].
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/rtc/rtc-ds1511.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index bda8843..1109cad 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -104,12 +104,6 @@ struct rtc_plat_data {
writeb(val, ds1511_base + (reg * reg_spacing));
}
-static inline void
-rtc_write_alarm(uint8_t val, enum ds1511reg reg)
-{
- rtc_write((val | 0x80), reg);
-}
-
static noinline uint8_t
rtc_read(enum ds1511reg reg)
{
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: remove unused function
2021-04-15 8:37 [PATCH] rtc: remove unused function Jiapeng Chong
@ 2021-04-16 23:15 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2021-04-16 23:15 UTC (permalink / raw)
To: a.zummo, Jiapeng Chong; +Cc: Alexandre Belloni, linux-kernel, linux-rtc
On Thu, 15 Apr 2021 16:37:01 +0800, Jiapeng Chong wrote:
> Fix the following clang warning:
>
> drivers/rtc/rtc-ds1511.c:108:1: warning: unused function
> 'rtc_write_alarm' [-Wunused-function].
Applied, thanks!
[1/1] rtc: remove unused function
commit: ef062a45ec9c2b6d15ddd9f76f897219334c7cd2
Best regards,
--
Alexandre Belloni <alexandre.belloni@bootlin.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-16 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 8:37 [PATCH] rtc: remove unused function Jiapeng Chong
2021-04-16 23:15 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).