From: Johann Felix Soden <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
CC: H. Peter Anvin <[EMAIL PROTECTED]>
---
 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



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to