aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-03-26 16:10:25 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-03-26 17:44:38 +0000
commit0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6 (patch)
tree18c30853c9601824832c21c3eedaa29f7c9da447
parent6c8dd7c863f111a22c8548ebf5d7e889117a964d (diff)
downloadsrc-0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6.tar.gz
src-0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6.zip
cxgbe: remove unused linux headers
Remove unused #includes of LinuxKPI headers noticed while trying to solve LinuxKPI struct net_device and related functions. Neither netdevice.h nor inetdevice.h nor notifier.h seem to be needed. This takes cxgbe(4) out of the picture of D29366. Sponsored-by: The FreeBSD Foundation MFC-after: 2 weeks Reviewed-by: np X-D-R: D29366 (extracted as further cleanup) Differential Revision: https://reviews.freebsd.org/D29432
-rw-r--r--sys/dev/cxgbe/iw_cxgbe/cm.c2
-rw-r--r--sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c
index 9f6f5411733c..b83622cc3c65 100644
--- a/sys/dev/cxgbe/iw_cxgbe/cm.c
+++ b/sys/dev/cxgbe/iw_cxgbe/cm.c
@@ -73,8 +73,6 @@ struct cpl_set_tcb_rpl;
#include "iw_cxgbe.h"
#include <linux/module.h>
#include <linux/workqueue.h>
-#include <linux/notifier.h>
-#include <linux/inetdevice.h>
#include <linux/if_vlan.h>
#include <net/netevent.h>
#include <rdma/rdma_cm.h>
diff --git a/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h b/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
index 5f26eccc1d1b..aa94a40add1e 100644
--- a/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
+++ b/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
@@ -39,7 +39,6 @@
#include <linux/spinlock.h>
#include <linux/idr.h>
#include <linux/completion.h>
-#include <linux/netdevice.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>