* + kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long.patch added to -mm tree
@ 2011-07-06 22:40 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-07-06 22:40 UTC (permalink / raw)
To: mm-commits; +Cc: pyu, john.stultz, tglx
The patch titled
kernel/time.c: change jiffies_to_clock_t() input parameter's type to unsigned long
has been added to the -mm tree. Its filename is
kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: kernel/time.c: change jiffies_to_clock_t() input parameter's type to unsigned long
From: hank <pyu@redhat.com>
The parameter's origin type is long. On an i386 architecture, it can
easily be larger than 0x80000000, causing this function to convert it to a
sign-extended u64 type. Change the type to unsigned long so we get the
correct result.
Signed-off-by: hank <pyu@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN kernel/time.c~kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long kernel/time.c
--- a/kernel/time.c~kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long
+++ a/kernel/time.c
@@ -575,7 +575,7 @@ EXPORT_SYMBOL(jiffies_to_timeval);
/*
* Convert jiffies/jiffies_64 to clock_t and back.
*/
-clock_t jiffies_to_clock_t(long x)
+clock_t jiffies_to_clock_t(unsigned long x)
{
#if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0
# if HZ < USER_HZ
_
Patches currently in -mm which might be from pyu@redhat.com are
kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-06 22:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-06 22:40 + kernel-timec-change-jiffies_to_clock_t-input-parameters-type-to-unsigned-long.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).