BigW Consortium Gitlab

Commit 301f888a by Ashish Syal

Fix overflow warning in rtc_sync module

parent 9f01dc92
......@@ -114,8 +114,8 @@ static int systohc(struct timespec now)
static int time_check(void *data)
{
while (!kthread_should_stop()) {
const long long expected_delta_ns = 10 * NSEC_PER_SEC;
long timeout = 10 * HZ;
const long long expected_delta_ns = 10LL * NSEC_PER_SEC;
long timeout = 10L * HZ;
struct timespec before;
struct timespec after;
long long delta_ns;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment