diff options
Diffstat (limited to 'fs/dlm/netlink.c')
-rw-r--r-- | fs/dlm/netlink.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c index 60a327863b11..e7cfbaf8d0e2 100644 --- a/fs/dlm/netlink.c +++ b/fs/dlm/netlink.c | |||
@@ -74,14 +74,16 @@ static int user_cmd(struct sk_buff *skb, struct genl_info *info) | |||
74 | return 0; | 74 | return 0; |
75 | } | 75 | } |
76 | 76 | ||
77 | static struct genl_ops dlm_nl_ops = { | 77 | static struct genl_ops dlm_nl_ops[] = { |
78 | .cmd = DLM_CMD_HELLO, | 78 | { |
79 | .doit = user_cmd, | 79 | .cmd = DLM_CMD_HELLO, |
80 | .doit = user_cmd, | ||
81 | }, | ||
80 | }; | 82 | }; |
81 | 83 | ||
82 | int __init dlm_netlink_init(void) | 84 | int __init dlm_netlink_init(void) |
83 | { | 85 | { |
84 | return genl_register_family_with_ops(&family, &dlm_nl_ops, 1); | 86 | return genl_register_family_with_ops(&family, dlm_nl_ops); |
85 | } | 87 | } |
86 | 88 | ||
87 | void dlm_netlink_exit(void) | 89 | void dlm_netlink_exit(void) |