mirror of
https://github.com/suyu-emu/horinux.git
synced 2026-09-21 14:15:21 -07:00
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>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/major.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
* the project's page is at https://linuxtv.org
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/export.h>
|
||||
#include <net/net_namespace.h>
|
||||
#include <net/netns/generic.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* Many thanks to all socketcan devs!
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include "ena_netdev.h"
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef AQ_NIC_H
|
||||
#define AQ_NIC_H
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
|
||||
#include "aq_common.h"
|
||||
#include "aq_rss.h"
|
||||
#include "aq_hw.h"
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define DRV_VER_MIN 10
|
||||
#define DRV_VER_UPD 1
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/rhashtable.h>
|
||||
#include <linux/crash_dump.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
|
||||
* NONINFRINGEMENT. See the GNU General Public License for more details.
|
||||
***********************************************************************/
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/net_tstamp.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
/* ETHTOOL Support for VNIC_VF Device*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/net_tstamp.h>
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/cache.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include "t4vf_common.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Copyright (C) 2015-2019 Google, Inc.
|
||||
*/
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include "gve.h"
|
||||
#include "gve_adminq.h"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <linux/dcbnl.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#define HINIC_PORT_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2019 Intel Corporation. */
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/vmalloc.h>
|
||||
|
||||
#include "fm10k.h"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#ifndef OTX2_COMMON_H
|
||||
#define OTX2_COMMON_H
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/net_tstamp.h>
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
#ifndef _MLXSW_CORE_ENV_H
|
||||
#define _MLXSW_CORE_ENV_H
|
||||
|
||||
struct ethtool_modinfo;
|
||||
struct ethtool_eeprom;
|
||||
|
||||
int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, int module,
|
||||
int off, int *temp);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#ifndef _MLXSW_SPECTRUM_H
|
||||
#define _MLXSW_SPECTRUM_H
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/rhashtable.h>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user