diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-11-20 23:50:52 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-24 02:27:04 +0100 |
commit | cc69837fcaf467426ca19e5790085c26146a2300 (patch) | |
tree | 94d2635912fdbe8873a928760551ac112a67115c /drivers/net/can/usb | |
parent | net: pch_gbe: Use 'dma_free_coherent()' to undo 'dma_alloc_coherent()' (diff) | |
download | linux-cc69837fcaf467426ca19e5790085c26146a2300.tar.xz linux-cc69837fcaf467426ca19e5790085c26146a2300.zip |
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>
Diffstat (limited to 'drivers/net/can/usb')
-rw-r--r-- | drivers/net/can/usb/gs_usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c index b3431c3feba1..a0336e895d94 100644 --- a/drivers/net/can/usb/gs_usb.c +++ b/drivers/net/can/usb/gs_usb.c @@ -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> |