diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-08-14 14:47:15 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-15 14:54:44 -0700 |
commit | fde9bd4a4d41b65a936d65eb416c1de27cb562f1 (patch) | |
tree | fe69b9e89f35c38bc81dae31d62f9823f62a63d3 /include/net/genetlink.h | |
parent | 84817d8c6042e6261ea45c53fe8b5a0bd55c3993 (diff) |
genetlink: make genl_info->nlhdr const
struct netlink_callback has a const nlh pointer, make the
pointer in struct genl_info const as well, to make copying
between the two easier.
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230814214723.2924989-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r-- | include/net/genetlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h index ed4622dd4828..0366d0925596 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h @@ -104,7 +104,7 @@ struct genl_family { struct genl_info { u32 snd_seq; u32 snd_portid; - struct nlmsghdr * nlhdr; + const struct nlmsghdr * nlhdr; struct genlmsghdr * genlhdr; void * userhdr; struct nlattr ** attrs; |