diff options
author | Puranjay Mohan <puranjay12@gmail.com> | 2019-06-18 09:53:51 +0530 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-07-13 13:53:22 +0200 |
commit | 3126790d1fd3f0dff11240c1bdb04a6f020a5a03 (patch) | |
tree | da1eafa5f65f7b80b57e9f8e226223ce48e0dc38 /drivers/rtc | |
parent | 3572e8aea3bf925dac1dbf86127657c39fe5c254 (diff) | |
download | linux-3126790d1fd3f0dff11240c1bdb04a6f020a5a03.tar.gz linux-3126790d1fd3f0dff11240c1bdb04a6f020a5a03.tar.bz2 linux-3126790d1fd3f0dff11240c1bdb04a6f020a5a03.zip |
rtc: interface: Change type of 'count' from int to u64
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 4124f4dd376b..72b7ddc43116 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c @@ -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); |