summaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2013-03-09 23:25:08 +0200
committerSimon Horman <horms@verge.net.au>2013-03-19 21:18:38 +0900
commitb962abdc6531c8de837504ebc98139587162f223 (patch)
tree6bbf692a799b00be72bbf5e821f74798e3aa8765 /include/net/ip_vs.h
parente9836f24f2e2a12336f7c95964661d5ea3d5a6a1 (diff)
downloadlinux-b962abdc6531c8de837504ebc98139587162f223.tar.gz
linux-b962abdc6531c8de837504ebc98139587162f223.tar.bz2
linux-b962abdc6531c8de837504ebc98139587162f223.zip
ipvs: fix some sparse warnings
Add missing __percpu annotations and make ip_vs_net_id static. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r--include/net/ip_vs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 68c69d54d392..29bc05577560 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -459,7 +459,7 @@ struct ip_vs_estimator {
struct ip_vs_stats {
struct ip_vs_stats_user ustats; /* statistics */
struct ip_vs_estimator est; /* estimator */
- struct ip_vs_cpu_stats *cpustats; /* per cpu counters */
+ struct ip_vs_cpu_stats __percpu *cpustats; /* per cpu counters */
spinlock_t lock; /* spin lock */
struct ip_vs_stats_user ustats0; /* reset values */
};