hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/net/ieee802154/netlink.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Netlink interface for IEEE 802.15.4 stack
34 *
45 * Copyright 2007, 2008 Siemens AG
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2
8
- * as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 *
157 * Written by:
168 * Sergey Lapin <slapin@ossfans.org>
....@@ -89,7 +81,7 @@
8981 return genlmsg_reply(msg, info);
9082 }
9183
92
-static const struct genl_ops ieee802154_ops[] = {
84
+static const struct genl_small_ops ieee802154_ops[] = {
9385 /* see nl-phy.c */
9486 IEEE802154_DUMP(IEEE802154_LIST_PHY, ieee802154_list_phy,
9587 ieee802154_dump_phy),
....@@ -136,9 +128,10 @@
136128 .name = IEEE802154_NL_NAME,
137129 .version = 1,
138130 .maxattr = IEEE802154_ATTR_MAX,
131
+ .policy = ieee802154_policy,
139132 .module = THIS_MODULE,
140
- .ops = ieee802154_ops,
141
- .n_ops = ARRAY_SIZE(ieee802154_ops),
133
+ .small_ops = ieee802154_ops,
134
+ .n_small_ops = ARRAY_SIZE(ieee802154_ops),
142135 .mcgrps = ieee802154_mcgrps,
143136 .n_mcgrps = ARRAY_SIZE(ieee802154_mcgrps),
144137 };