aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-08-18 14:39:21 -0700
committerIngo Molnar <mingo@elte.hu>2008-08-27 09:28:07 +0200
commit0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4 (patch)
treea57f4c271361a73a84d27eb3b4e764f608afefe7 /kernel
parent275a89bdd3868af3008852594d2e169eaf69441b (diff)
downloadkernel_samsung_aries-0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4.zip
kernel_samsung_aries-0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4.tar.gz
kernel_samsung_aries-0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4.tar.bz2
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')
-rw-r--r--kernel/rcuclassic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcuclassic.c b/kernel/rcuclassic.c
index 3f69189..743cf05 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));