percpu_ptr was removed in 2.6.30, so update the one remaining user
and take out the compatibility code.
Suggested-by: Ben Pfaff <blp@nicira.com>
stats.n_frags = stats.n_hit = stats.n_missed = stats.n_lost = 0;
for_each_possible_cpu(i) {
const struct dp_stats_percpu *s;
- s = percpu_ptr(dp->stats_percpu, i);
+ s = per_cpu_ptr(dp->stats_percpu, i);
stats.n_frags += s->n_frags;
stats.n_hit += s->n_hit;
stats.n_missed += s->n_missed;
linux-2.6/compat-2.6/include/linux/netfilter_bridge.h \
linux-2.6/compat-2.6/include/linux/netfilter_ipv4.h \
linux-2.6/compat-2.6/include/linux/netlink.h \
- linux-2.6/compat-2.6/include/linux/percpu.h \
linux-2.6/compat-2.6/include/linux/random.h \
linux-2.6/compat-2.6/include/linux/rculist.h \
linux-2.6/compat-2.6/include/linux/rtnetlink.h \
+++ /dev/null
-#ifndef __LINUX_PERCPU_H_WRAPPER
-#define __LINUX_PERCPU_H_WRAPPER 1
-
-#include_next <linux/percpu.h>
-
-#ifndef percpu_ptr
-#define percpu_ptr per_cpu_ptr
-#endif
-
-#endif /* linux/percpu.h wrapper */