diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-15 18:56:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-02-25 16:34:17 +0100 |
commit | 67ca7bde2e9d3516b5ae0188330ad1059ac03f38 (patch) | |
tree | 770b1a1c7ed520d984b5de3c588c2e96368daafa /kernel | |
parent | sched: clean up __pick_last_entity() a bit (diff) | |
download | linux-67ca7bde2e9d3516b5ae0188330ad1059ac03f38.tar.xz linux-67ca7bde2e9d3516b5ae0188330ad1059ac03f38.zip |
sched: fix signedness warnings in sched.c
Unsigned long values are always assigned to switch_count,
make it unsigned long.
kernel/sched.c:3897:15: warning: incorrect type in assignment (different signedness)
kernel/sched.c:3897:15: expected long *switch_count
kernel/sched.c:3897:15: got unsigned long *<noident>
kernel/sched.c:3921:16: warning: incorrect type in assignment (different signedness)
kernel/sched.c:3921:16: expected long *switch_count
kernel/sched.c:3921:16: got unsigned long *<noident>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7286ccb01082..f06950c8a6ce 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -3889,7 +3889,7 @@ pick_next_task(struct rq *rq, struct task_struct *prev) asmlinkage void __sched schedule(void) { struct task_struct *prev, *next; - long *switch_count; + unsigned long *switch_count; struct rq *rq; int cpu; |