mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
net: dsa: Add __percpu property to prevent warnings
net/dsa/slave.c:505:13: warning: incorrect type in initializer (different address spaces) net/dsa/slave.c:505:13: expected void const [noderef] <asn:3> *__vpp_verify net/dsa/slave.c:505:13: got struct pcpu_sw_netstats * Add the needed _percpu property to prevent this warning. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dbacfd8ca7
commit
a61bf20831
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ struct dsa_slave_priv {
|
||||||
struct sk_buff * (*xmit)(struct sk_buff *skb,
|
struct sk_buff * (*xmit)(struct sk_buff *skb,
|
||||||
struct net_device *dev);
|
struct net_device *dev);
|
||||||
|
|
||||||
struct pcpu_sw_netstats *stats64;
|
struct pcpu_sw_netstats __percpu *stats64;
|
||||||
|
|
||||||
struct gro_cells gcells;
|
struct gro_cells gcells;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue