clean-up: fixes "shadows global" warning
PATCH 1/1 clean-up: fixes "shadows global" warning
This patch fixes warning "declaration of `jiffies' shadows a global declaration" occuring on line 236
Signed-off-by Riina Kikas <[email protected]>
include/linux/time.h +1 -2
@@ -233,13 +233,13 @@ }static __inline__void -jiffies_to_timespec (const unsigned long jiffies,struct timespec *value) +jiffies_to_timespec (const unsigned long jiffy_count,struct timespec *value) {/* * Convert jiffies to nanoseconds and separate with * one divide. */ - u64 nsec = (u64)jiffies * TICK_NSEC; + u64 nsec = (u64)jiffy_count * TICK_NSEC; value->tv_sec =div_long_long_rem (nsec,NSEC_PER_SEC , &value->tv_nsec); }