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:
@@ -34,7 +34,6 @@
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/dynamic_queue_limits.h>
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
#include <net/net_namespace.h>
|
||||
#ifdef CONFIG_DCB
|
||||
#include <net/dcbnl.h>
|
||||
@@ -51,6 +50,7 @@
|
||||
|
||||
struct netpoll_info;
|
||||
struct device;
|
||||
struct ethtool_ops;
|
||||
struct phy_device;
|
||||
struct dsa_port;
|
||||
struct ip_tunnel_parm;
|
||||
|
||||
Reference in New Issue
Block a user