diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-08-18 23:39:21 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-27 09:28:07 +0200 |
commit | 0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4 (patch) | |
tree | a57f4c271361a73a84d27eb3b4e764f608afefe7 /kernel/rcuclassic.c | |
parent | rcu: use irq-safe locks (diff) | |
download | linux-0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4.tar.xz linux-0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4.zip |
rcuclassic: fix compiler warning
CC kernel/rcuclassic.o
kernel/rcuclassic.c: In function 'rcu_init_percpu_data':
kernel/rcuclassic.c:705: warning: comparison of distinct pointer types lacks a cast
kernel/rcuclassic.c:713: warning: comparison of distinct pointer types lacks a cast
flags should be unsigned long.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/rcuclassic.c')
-rw-r--r-- | kernel/rcuclassic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcuclassic.c b/kernel/rcuclassic.c index 3f6918966bda..743cf0550ff4 100644 --- a/kernel/rcuclassic.c +++ b/kernel/rcuclassic.c @@ -714,7 +714,7 @@ void rcu_check_callbacks(int cpu, int user) static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp, struct rcu_data *rdp) { - long flags; + unsigned long flags; spin_lock_irqsave(&rcp->lock, flags); memset(rdp, 0, sizeof(*rdp)); |