Browse Source

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 17 năm trước cách đây
mục cha
commit
39cd72de49
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      kernel/sched_debug.c

+ 4 - 4
kernel/sched_debug.c

@@ -31,9 +31,9 @@
 /*
 /*
  * Ease the printing of nsec fields:
  * 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;
 		nsec = -nsec;
 		do_div(nsec, 1000000);
 		do_div(nsec, 1000000);
 		return -nsec;
 		return -nsec;
@@ -43,9 +43,9 @@ static long long nsec_high(long long nsec)
 	return 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;
 		nsec = -nsec;
 
 
 	return do_div(nsec, 1000000);
 	return do_div(nsec, 1000000);