Message ID | 201011180403.oAI43JBT005077@www262.sakura.ne.jp |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Date: Thu, 18 Nov 2010 13:03:19 +0900 >>From a391f571f21bfa81369599f03e86fa75589291a3 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> > Date: Thu, 18 Nov 2010 12:44:26 +0900 > Subject: [PATCH 2.6.37-rc2] Fix duplicate volatile warning. > > jiffies is defined as "volatile". > > extern unsigned long volatile __jiffy_data jiffies; > > ACCESS_ONCE() uses "volatile". > As a result, some compilers warn duplicate `volatile' for ACCESS_ONCE(jiffies). > > Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Fair enough, applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 55590ab..6beb1ff 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -303,7 +303,7 @@ static inline void neigh_confirm(struct neighbour *neigh) static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) { - unsigned long now = ACCESS_ONCE(jiffies); + unsigned long now = jiffies; if (neigh->used != now) neigh->used = now;