Sparse can warn if percpu pointers are incorrectly directly
dereference. This adds the annotation where we declare percpu
pointers.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
struct list_head port_list;
/* Stats. */
- struct dp_stats_percpu *stats_percpu;
+ struct dp_stats_percpu __percpu *stats_percpu;
/* sFlow Sampling */
unsigned int sflow_probability;
struct hlist_node hash_node;
const struct vport_ops *ops;
- struct vport_percpu_stats *percpu_stats;
+ struct vport_percpu_stats __percpu *percpu_stats;
spinlock_t stats_lock;
struct vport_err_stats err_stats;