projects/linux·commit 39cd72de

Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched

39cd72de · Linus Torvalds <[email protected]> · 2008-01-03 12:01:00 -08:00

* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
  sched: fix gcc warnings
Commit
39cd72de49032f1d9cd9166241ff4854a2cbb56b
Parents
2c5d63d8 · 90b2628f

Merge commit. Changes below are compared with the first parent: 2c5d63d8.

Changes

1 files changed · +4 −4

FileStatusAddDelContent
kernel/sched_debug.cmodified+4−4View file

kernel/sched_debug.c

View file
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index d30467b..80fbbfc 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -31,9 +31,9 @@
/*
* Ease the printing of nsec fields:
*/
-static long long nsec_high(long long nsec)
+static long long nsec_high(unsigned long long nsec)
{
- if (nsec < 0) {
+ if ((long long)nsec < 0) {
nsec = -nsec;
do_div(nsec, 1000000);
return -nsec;
@@ -43,9 +43,9 @@ static long long nsec_high(long long nsec)
return nsec;
}
-static unsigned long nsec_low(long long nsec)
+static unsigned long nsec_low(unsigned long long nsec)
{
- if (nsec < 0)
+ if ((long long)nsec < 0)
nsec = -nsec;
return do_div(nsec, 1000000);