genetlink: make genl_info->nlhdr const
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 21:47:15 +0000 (14:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 21:54:44 +0000 (14:54 -0700)
commitfde9bd4a4d41b65a936d65eb416c1de27cb562f1
treefe69b9e89f35c38bc81dae31d62f9823f62a63d3
parent84817d8c6042e6261ea45c53fe8b5a0bd55c3993
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>
include/net/genetlink.h
net/ncsi/ncsi-netlink.c
net/ncsi/ncsi-netlink.h