diff options
| author | Jakub Kicinski <[email protected]> | 2025-03-07 18:30:06 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-08 17:06:50 +0000 |
| commit | 8ef890df4031121a94407c84659125cbccd3fdbe (patch) | |
| tree | 3200b186f428a9dd37b0b7e9bd034cf8e32a9f9f /drivers/net/macsec.c | |
| parent | hamradio: use netdev_lockdep_set_classes() helper (diff) | |
| download | kernel-8ef890df4031121a94407c84659125cbccd3fdbe.tar.gz kernel-8ef890df4031121a94407c84659125cbccd3fdbe.zip | |
net: move misc netdev_lock flavors to a separate header
Move the more esoteric helpers for netdev instance lock to
a dedicated header. This avoids growing netdevice.h to infinity
and makes rebuilding the kernel much faster (after touching
the header with the helpers).
The main netdev_lock() / netdev_unlock() functions are used
in static inlines in netdevice.h and will probably be used
most commonly, so keep them in netdevice.h.
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/macsec.c')
| -rw-r--r-- | drivers/net/macsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 4de5d63fd577..3d315e30ee47 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -19,6 +19,7 @@ #include <net/gro_cells.h> #include <net/macsec.h> #include <net/dst_metadata.h> +#include <net/netdev_lock.h> #include <linux/phy.h> #include <linux/byteorder/generic.h> #include <linux/if_arp.h> |
