History

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

* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched: sched: fix gcc warnings

Linus Torvalds committed 18 years ago

Commit 39cd72d2 parents 2c5d63d 90b26281 file · +4 −4Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sched_debug.c+4−4
@@ -31,9 +31,9 @@ · 30 unmodified lines
3131 /*
3232 * Ease the printing of nsec fields:
3333 */
34−static long long nsec_high(long long nsec)
34+static long long nsec_high(unsigned long long nsec)
3535 {
36− if (nsec < 0) {
36+ if ((long long)nsec < 0) {
3737 nsec = -nsec;
3838 do_div(nsec, 1000000);
3939 return -nsec;
@@ -43,9 +43,9 @@ static long long nsec_high(long long nsec) · 3 unmodified lines
4343 return nsec;
4444 }
4545
46−static unsigned long nsec_low(long long nsec)
46+static unsigned long nsec_low(unsigned long long nsec)
4747 {
48− if (nsec < 0)
48+ if ((long long)nsec < 0)
4949 nsec = -nsec;
5050
5151 return do_div(nsec, 1000000);