From: Johann Felix Soden <johfel@gmx.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] time: Fix constant size in kernel/timeconst.h
Date: Sat, 09 Feb 2008 14:20:42 +0100 [thread overview]
Message-ID: <1202563242.22512.1.camel@localhost> (raw)
From: Johann Felix Soden <johfel@users.sourceforge.net>
kernel/timeconst.pl generates only long sized constants in timeconst.pl
which gives this warning:
kernel/time.c: In function 'msecs_to_jiffies':
kernel/time.c:472: warning: integer constant is too large for 'long' type
unsigned long long is needed.
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
CC: H. Peter Anvin <hpa@zytor.com>
---
kernel/timeconst.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
index 62b1287..a645654 100644
--- a/kernel/timeconst.pl
+++ b/kernel/timeconst.pl
@@ -342,12 +342,12 @@ sub output($@)
'USEC_TO_HZ','HZ_TO_USEC') {
foreach $bit (32, 64) {
foreach $suf ('MUL', 'ADJ', 'SHR') {
- printf "#define %-23s %s\n",
+ printf "#define %-23s %sULL\n",
"${pfx}_$suf$bit", shift(@val);
}
}
foreach $suf ('NUM', 'DEN') {
- printf "#define %-23s %s\n",
+ printf "#define %-23s %sULL\n",
"${pfx}_$suf", shift(@val);
}
}
--
1.5.4
next reply other threads:[~2008-02-09 13:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 13:20 Johann Felix Soden [this message]
2008-02-09 21:33 ` [PATCH] time: Fix constant size in kernel/timeconst.h H. Peter Anvin
2008-02-09 22:29 ` Johann Felix Soden
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=1202563242.22512.1.camel@localhost \
--to=johfel@gmx.de \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.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