diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-08-18 17:39:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-27 03:28:07 -0400 |
commit | 0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4 (patch) | |
tree | a57f4c271361a73a84d27eb3b4e764f608afefe7 /kernel/rcuclassic.c | |
parent | 275a89bdd3868af3008852594d2e169eaf69441b (diff) |
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) | |||
714 | static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp, | 714 | static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp, |
715 | struct rcu_data *rdp) | 715 | struct rcu_data *rdp) |
716 | { | 716 | { |
717 | long flags; | 717 | unsigned long flags; |
718 | 718 | ||
719 | spin_lock_irqsave(&rcp->lock, flags); | 719 | spin_lock_irqsave(&rcp->lock, flags); |
720 | memset(rdp, 0, sizeof(*rdp)); | 720 | memset(rdp, 0, sizeof(*rdp)); |