Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2021 17:55:28 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0a7b99553f5c - main - cxgbe: remove unused linux headers
Message-ID:  <202103261755.12QHtSH4030516@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6

commit 0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-03-26 16:10:25 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-03-26 17:44:38 +0000

    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
---
 sys/dev/cxgbe/iw_cxgbe/cm.c       | 2 --
 sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h | 1 -
 2 files changed, 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103261755.12QHtSH4030516>