diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-15 12:56:36 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-02-25 10:34:17 -0500 |
commit | 67ca7bde2e9d3516b5ae0188330ad1059ac03f38 (patch) | |
tree | 770b1a1c7ed520d984b5de3c588c2e96368daafa /kernel/sched.c | |
parent | 7eee3e677d6e2e9007afcd7d79b0715525aa552e (diff) |
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/sched.c')
-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) | |||
3889 | asmlinkage void __sched schedule(void) | 3889 | asmlinkage void __sched schedule(void) |
3890 | { | 3890 | { |
3891 | struct task_struct *prev, *next; | 3891 | struct task_struct *prev, *next; |
3892 | long *switch_count; | 3892 | unsigned long *switch_count; |
3893 | struct rq *rq; | 3893 | struct rq *rq; |
3894 | int cpu; | 3894 | int cpu; |
3895 | 3895 | ||