aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2018-01-09 23:42:34 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-10 15:37:00 -0500
commitfd3ba21478d0ca40da2b71850a2cc447516bb7d8 (patch)
tree56adf790ab576bd474f80a2968c564bd6b8fffd1
parentnet: phy: marvell: mv88e6390 temperature sensor reading (diff)
downloadlinux-dev-fd3ba21478d0ca40da2b71850a2cc447516bb7d8.tar.xz
linux-dev-fd3ba21478d0ca40da2b71850a2cc447516bb7d8.zip
net: fix xdp_rxq_info build issue when CONFIG_SYSFS is not set
The commit e817f85652c1 ("xdp: generic XDP handling of xdp_rxq_info") removed some ifdef CONFIG_SYSFS in net/core/dev.c, but forgot to remove the corresponding ifdef's in include/linux/netdevice.h. Fixes: e817f85652c1 ("xdp: generic XDP handling of xdp_rxq_info") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netdevice.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6f54c58b623b..ef7b348e8498 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1805,12 +1805,9 @@ struct net_device {
/* Interface address info used in eth_type_trans() */
unsigned char *dev_addr;
-#ifdef CONFIG_SYSFS
struct netdev_rx_queue *_rx;
-
unsigned int num_rx_queues;
unsigned int real_num_rx_queues;
-#endif
struct bpf_prog __rcu *xdp_prog;
unsigned long gro_flush_timeout;