From: Mike Frysinger <vapier@gentoo.org>
To: zippel@linux-m68k.org, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] linux/timex.h: cleanup for userspace
Date: Tue, 19 Aug 2008 22:46:23 -0400 [thread overview]
Message-ID: <1219200383-19556-1-git-send-email-vapier@gentoo.org> (raw)
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@gentoo.org>
---
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
next reply other threads:[~2008-08-20 2:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 2:46 Mike Frysinger [this message]
2008-08-21 3:09 ` Roman Zippel
2008-10-26 10:37 Mike Frysinger
2008-10-28 3:28 ` Andrew Morton
2008-10-28 3:31 ` Mike Frysinger
2008-12-27 6:49 Mike Frysinger
2008-12-29 12:22 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1219200383-19556-1-git-send-email-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®