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>
This commit is contained in:
parent
84817d8c60
commit
fde9bd4a4d
|
@ -104,7 +104,7 @@ struct genl_family {
|
||||||
struct genl_info {
|
struct genl_info {
|
||||||
u32 snd_seq;
|
u32 snd_seq;
|
||||||
u32 snd_portid;
|
u32 snd_portid;
|
||||||
struct nlmsghdr * nlhdr;
|
const struct nlmsghdr * nlhdr;
|
||||||
struct genlmsghdr * genlhdr;
|
struct genlmsghdr * genlhdr;
|
||||||
void * userhdr;
|
void * userhdr;
|
||||||
struct nlattr ** attrs;
|
struct nlattr ** attrs;
|
||||||
|
|
|
@ -563,7 +563,7 @@ int ncsi_send_netlink_timeout(struct ncsi_request *nr,
|
||||||
int ncsi_send_netlink_err(struct net_device *dev,
|
int ncsi_send_netlink_err(struct net_device *dev,
|
||||||
u32 snd_seq,
|
u32 snd_seq,
|
||||||
u32 snd_portid,
|
u32 snd_portid,
|
||||||
struct nlmsghdr *nlhdr,
|
const struct nlmsghdr *nlhdr,
|
||||||
int err)
|
int err)
|
||||||
{
|
{
|
||||||
struct nlmsghdr *nlh;
|
struct nlmsghdr *nlh;
|
||||||
|
|
|
@ -19,7 +19,7 @@ int ncsi_send_netlink_timeout(struct ncsi_request *nr,
|
||||||
int ncsi_send_netlink_err(struct net_device *dev,
|
int ncsi_send_netlink_err(struct net_device *dev,
|
||||||
u32 snd_seq,
|
u32 snd_seq,
|
||||||
u32 snd_portid,
|
u32 snd_portid,
|
||||||
struct nlmsghdr *nlhdr,
|
const struct nlmsghdr *nlhdr,
|
||||||
int err);
|
int err);
|
||||||
|
|
||||||
#endif /* __NCSI_NETLINK_H__ */
|
#endif /* __NCSI_NETLINK_H__ */
|
||||||
|
|
Loading…
Reference in New Issue