diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-04-01 21:44:35 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-01 21:44:36 -0700 |
commit | edaa34e68c8113f1625244689107567bf5bd1637 (patch) | |
tree | 8791061a86c277c7aafd86283c428eee6cc3e08c /include/linux/genl_magic_struct.h | |
parent | 092ca10741c19b4ffd975f09c456edeb9d58bccc (diff) | |
parent | cd7209628cdb2a7edd7656c126d2455e7102e949 (diff) |
Merge branch 'genetlink-remove-linux-genetlink-h'
Jakub Kicinski says:
====================
genetlink: remove linux/genetlink.h
There are two genetlink headers net/genetlink.h and linux/genetlink.h
This is similar to netlink.h, but for netlink.h both contain good
amount of code. For genetlink.h the linux/ version is leftover
from before uAPI headers were split out, it has 10 lines of code.
Move those 10 lines into other appropriate headers and delete
linux/genetlink.h.
I occasionally open the wrong header in the editor when coding,
I guess I'm not the only one.
v2: https://lore.kernel.org/all/20240325173716.2390605-1-kuba@kernel.org/
v1: https://lore.kernel.org/all/20240309183458.3014713-1-kuba@kernel.org
====================
Link: https://lore.kernel.org/r/20240329175710.291749-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/genl_magic_struct.h')
-rw-r--r-- | include/linux/genl_magic_struct.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/genl_magic_struct.h b/include/linux/genl_magic_struct.h index a419d93789ff..621b87a87d74 100644 --- a/include/linux/genl_magic_struct.h +++ b/include/linux/genl_magic_struct.h @@ -15,8 +15,8 @@ #endif #include <linux/args.h> -#include <linux/genetlink.h> #include <linux/types.h> +#include <net/genetlink.h> extern int CONCATENATE(GENL_MAGIC_FAMILY, _genl_register)(void); extern void CONCATENATE(GENL_MAGIC_FAMILY, _genl_unregister)(void); |