hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/net/phonet/pn_netlink.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * File: pn_netlink.c
34 *
....@@ -7,20 +8,6 @@
78 *
89 * Authors: Sakari Ailus <sakari.ailus@nokia.com>
910 * Remi Denis-Courmont
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * version 2 as published by the Free Software Foundation.
14
- *
15
- * This program is distributed in the hope that it will be useful, but
16
- * WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23
- * 02110-1301 USA
2411 */
2512
2613 #include <linux/kernel.h>
....@@ -79,8 +66,8 @@
7966
8067 ASSERT_RTNL();
8168
82
- err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy,
83
- extack);
69
+ err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
70
+ ifa_phonet_policy, extack);
8471 if (err < 0)
8572 return err;
8673
....@@ -246,8 +233,8 @@
246233
247234 ASSERT_RTNL();
248235
249
- err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_phonet_policy,
250
- extack);
236
+ err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
237
+ rtm_phonet_policy, extack);
251238 if (err < 0)
252239 return err;
253240