Skip to content
/ linux Public

Commit cc69837

Browse files
committed
net: don't include ethtool.h from netdevice.h
linux/netdevice.h is included in very many places, touching any of its dependecies causes large incremental builds. Drop the linux/ethtool.h include, linux/netdevice.h just needs a forward declaration of struct ethtool_ops. Fix all the places which made use of this implicit include. Acked-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Shannon Nelson <snelson@pensando.io> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Link: https://lore.kernel.org/r/20201120225052.1427503-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 7fd6372 commit cc69837

File tree

45 files changed

+51
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+51
-1
lines changed

drivers/isdn/capi/capi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <linux/compiler.h>
1313
#include <linux/module.h>
14+
#include <linux/ethtool.h>
1415
#include <linux/errno.h>
1516
#include <linux/kernel.h>
1617
#include <linux/major.h>

drivers/media/pci/ttpci/av7110_av.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* the project's page is at https://linuxtv.org
1212
*/
1313

14+
#include <linux/ethtool.h>
1415
#include <linux/types.h>
1516
#include <linux/kernel.h>
1617
#include <linux/string.h>

drivers/net/bonding/bond_procfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <linux/proc_fs.h>
3+
#include <linux/ethtool.h>
34
#include <linux/export.h>
45
#include <net/net_namespace.h>
56
#include <net/netns/generic.h>

drivers/net/can/usb/gs_usb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Many thanks to all socketcan devs!
1010
*/
1111

12+
#include <linux/ethtool.h>
1213
#include <linux/init.h>
1314
#include <linux/signal.h>
1415
#include <linux/module.h>

drivers/net/ethernet/amazon/ena/ena_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
44
*/
55

6+
#include <linux/ethtool.h>
67
#include <linux/pci.h>
78

89
#include "ena_netdev.h"

drivers/net/ethernet/aquantia/atlantic/aq_nic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#ifndef AQ_NIC_H
1111
#define AQ_NIC_H
1212

13+
#include <linux/ethtool.h>
14+
1315
#include "aq_common.h"
1416
#include "aq_rss.h"
1517
#include "aq_hw.h"

drivers/net/ethernet/broadcom/bnxt/bnxt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define DRV_VER_MIN 10
2121
#define DRV_VER_UPD 1
2222

23+
#include <linux/ethtool.h>
2324
#include <linux/interrupt.h>
2425
#include <linux/rhashtable.h>
2526
#include <linux/crash_dump.h>

drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* the Free Software Foundation.
99
*/
1010

11+
#include <linux/ethtool.h>
1112
#include <linux/module.h>
1213
#include <linux/pci.h>
1314
#include <linux/netdevice.h>

drivers/net/ethernet/cavium/liquidio/lio_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
1616
* NONINFRINGEMENT. See the GNU General Public License for more details.
1717
***********************************************************************/
18+
#include <linux/ethtool.h>
1819
#include <linux/netdevice.h>
1920
#include <linux/net_tstamp.h>
2021
#include <linux/pci.h>

drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
/* ETHTOOL Support for VNIC_VF Device*/
77

8+
#include <linux/ethtool.h>
89
#include <linux/pci.h>
910
#include <linux/net_tstamp.h>
1011

0 commit comments

Comments
 (0)