[PATCH] linux/timex.h: cleanup for userspace
From: Mike Frysinger
Date: Tue Aug 19 2008 - 22:46:35 EST
MAXFREQ_SCALED was tweaked recently to contain a (s64) cast. Assuming this
is meant for userspace, change it to (__s64) and pull in linux/types.h.
Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
include/linux/timex.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/linux/timex.h b/include/linux/timex.h
index fc6035d..07ed536 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -55,6 +55,7 @@
#include <linux/compiler.h>
#include <linux/time.h>
+#include <linux/types.h>
#include <asm/param.h>
@@ -88,7 +89,7 @@
#define MAXPHASE 500000000l /* max phase error (ns) */
#define MAXFREQ 500000 /* max frequency error (ns/s) */
-#define MAXFREQ_SCALED ((s64)MAXFREQ << NTP_SCALE_SHIFT)
+#define MAXFREQ_SCALED ((__s64)MAXFREQ << NTP_SCALE_SHIFT)
#define MINSEC 256 /* min interval between updates (s) */
#define MAXSEC 2048 /* max interval between updates (s) */
#define NTP_PHASE_LIMIT ((MAXPHASE / NSEC_PER_USEC) << 5) /* beyond max. dispersion */
--
1.5.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/