summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-15 20:56:36 +0300
committerIngo Molnar <mingo@elte.hu>2008-02-25 18:34:17 +0300
commit67ca7bde2e9d3516b5ae0188330ad1059ac03f38 (patch)
tree770b1a1c7ed520d984b5de3c588c2e96368daafa /kernel
parent7eee3e677d6e2e9007afcd7d79b0715525aa552e (diff)
downloadlinux-67ca7bde2e9d3516b5ae0188330ad1059ac03f38.tar.xz
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.c2
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;