Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 00:36:05 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0bbb50ec872d - stable/13 - cxgbe: remove unused linux headers
Message-ID:  <202107180036.16I0a50G048655@gitrepo.freebsd.org>

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

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

commit 0bbb50ec872d6997a70e4ca55cfba548504410e6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-03-26 16:10:25 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-07-18 00:34:59 +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
    Reviewed by:    np
    Differential Revision:  https://reviews.freebsd.org/D29432
    
    (cherry picked from commit 0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6)
---
 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?202107180036.16I0a50G048655>