[PATCH] ktime: Fix signed / unsigned mismatch in ktime_to_ns
authorThomas Gleixner <tglx@linutronix.de>
Thu, 7 Dec 2006 04:37:38 +0000 (20:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:37 +0000 (08:39 -0800)
commitcfd1893477fa94bb0915e39afa2f044ac978b5c6
treeb21d67eb7445836eb48d5ed0944be827cbce4fbb
parentb46be05004abb419e303e66e143eed9f8a6e9f3f
[PATCH] ktime: Fix signed / unsigned mismatch in ktime_to_ns

The 32 bit implementation of ktime_to_ns returns unsigned value, while the
64 bit version correctly returns an signed value.  There is no current user
affected by this, but it has to be fixed, as ktime values can be negative.

Pointed-out-by: Helmut Duregger <Helmut.Duregger@student.uibk.ac.at>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/ktime.h