* [PATCH] rtc: armada38x: Remove the unused variables
@ 2015-05-06 14:23 Gregory CLEMENT
2015-05-14 21:48 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Gregory CLEMENT @ 2015-05-06 14:23 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni, rtc-linux; +Cc: Gregory CLEMENT, stable
When applying the fix "rtc: armada38x: Fix concurrency access in
armada38x_rtc_set_time", some spinlock using the flags variable have
been removed, but not the flags variable themselves. This commit fixes
it.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: <stable@vger.kernel.org> #v4.0
---
drivers/rtc/rtc-armada38x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c
index cb70ced7e0db..2b08cac62f07 100644
--- a/drivers/rtc/rtc-armada38x.c
+++ b/drivers/rtc/rtc-armada38x.c
@@ -64,7 +64,7 @@ static void rtc_delayed_write(u32 val, struct armada38x_rtc *rtc, int offset)
static int armada38x_rtc_read_time(struct device *dev, struct rtc_time *tm)
{
struct armada38x_rtc *rtc = dev_get_drvdata(dev);
- unsigned long time, time_check, flags;
+ unsigned long time, time_check;
mutex_lock(&rtc->mutex_time);
time = readl(rtc->regs + RTC_TIME);
@@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm)
{
struct armada38x_rtc *rtc = dev_get_drvdata(dev);
int ret = 0;
- unsigned long time, flags;
+ unsigned long time;
ret = rtc_tm_to_time(tm, &time);
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: armada38x: Remove the unused variables
2015-05-06 14:23 [PATCH] rtc: armada38x: Remove the unused variables Gregory CLEMENT
@ 2015-05-14 21:48 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2015-05-14 21:48 UTC (permalink / raw)
To: Andrew Morton; +Cc: Gregory CLEMENT, Alessandro Zummo, rtc-linux, stable
Hi Andrew,
On 06/05/2015 at 16:23:30 +0200, Gregory CLEMENT wrote :
> When applying the fix "rtc: armada38x: Fix concurrency access in
> armada38x_rtc_set_time", some spinlock using the flags variable have
> been removed, but not the flags variable themselves. This commit fixes
> it.
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Cc: <stable@vger.kernel.org> #v4.0
Can you send this fix to Linus after adding those tags:
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: 489405fe5ed38 ("rtc: armada38x: fix concurrency access in armada38x_rtc_set_time")
Thanks!
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-14 21:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 14:23 [PATCH] rtc: armada38x: Remove the unused variables Gregory CLEMENT
2015-05-14 21:48 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox