You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
netlink: hide struct module parameter in netlink_kernel_create
This patch defines netlink_kernel_create as a wrapper function of __netlink_kernel_create to hide the struct module *me parameter (which seems to be THIS_MODULE in all existing netlink subsystems). Suggested by David S. Miller. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9785e10aed
commit
9f00d9776b
@@ -130,8 +130,7 @@ static int __init dn_rtmsg_init(void)
|
||||
.input = dnrmg_receive_user_skb,
|
||||
};
|
||||
|
||||
dnrmg = netlink_kernel_create(&init_net,
|
||||
NETLINK_DNRTMSG, THIS_MODULE, &cfg);
|
||||
dnrmg = netlink_kernel_create(&init_net, NETLINK_DNRTMSG, &cfg);
|
||||
if (dnrmg == NULL) {
|
||||
printk(KERN_ERR "dn_rtmsg: Cannot create netlink socket");
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user