]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit5b4743d4baa54e279a843be7df2515181fd509d7
treeb21d67eb7445836eb48d5ed0944be827cbce4fbb
parent830fc61eb700fd65d0abe6fc0ded52c8d09aeb0b
[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