Skip to contentSkip to conversation

clean-up: fixes "shadows global" warning

PATCH New Riina Kikas 1 participant 1 message Dec 6, 2004 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clean-up: fixes "shadows global" warning

This patch fixes warning "declaration of `jiffies' shadows a global declaration" occuring on line 236

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);
 }