rtc: interface: Change type of 'count' from int to u64
authorPuranjay Mohan <puranjay12@gmail.com>
Tue, 18 Jun 2019 04:23:51 +0000 (09:53 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 13 Jul 2019 11:53:22 +0000 (13:53 +0200)
Callers of hrtimer_forward_now() should save the return value in u64.
function rtc_pie_update_irq() stores it in variable 'count' of type int
change type of count from unsigned long to u64 to solve the issue.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20190618042351.9692-1-puranjay12@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/interface.c

index 4124f4dd376b33c532e94da4783ea6467186393f..72b7ddc4311656cedbb4b14d597461b50d8bc7bb 100644 (file)
@@ -633,7 +633,7 @@ enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer)
 {
        struct rtc_device *rtc;
        ktime_t period;
-       int count;
+       u64 count;
 
        rtc = container_of(timer, struct rtc_device, pie_timer);