diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-03-29 20:57:08 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-02 07:44:34 +0300 |
commit | 5bc63d3a6f466add504f283d9f743f20ca9ec334 (patch) | |
tree | 2198f76e642764b002ec6dbac8b6e6709b91a42f /include | |
parent | 092ca10741c19b4ffd975f09c456edeb9d58bccc (diff) | |
download | linux-5bc63d3a6f466add504f283d9f743f20ca9ec334.tar.xz |
netlink: create a new header for internal genetlink symbols
There are things in linux/genetlink.h which are only used
under net/netlink/. Move them to a new local header.
A new header with just 2 externs isn't great, but alternative
would be to include af_netlink.h in genetlink.c which feels
even worse.
Link: https://lore.kernel.org/r/20240329175710.291749-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/genetlink.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h index c285968e437a..9dbd7ba9b858 100644 --- a/include/linux/genetlink.h +++ b/include/linux/genetlink.h @@ -4,15 +4,10 @@ #include <uapi/linux/genetlink.h> - /* All generic netlink requests are serialized by a global lock. */ extern void genl_lock(void); extern void genl_unlock(void); -/* for synchronisation between af_netlink and genetlink */ -extern atomic_t genl_sk_destructing_cnt; -extern wait_queue_head_t genl_sk_destructing_waitq; - #define MODULE_ALIAS_GENL_FAMILY(family)\ MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family) |