| .. | .. | 
|---|
 | 1 | +// SPDX-License-Identifier: GPL-2.0-only  | 
|---|
| 1 | 2 |  /* | 
|---|
| 2 | 3 |   * File: pn_netlink.c | 
|---|
| 3 | 4 |   * | 
|---|
| .. | .. | 
|---|
| 7 | 8 |   * | 
|---|
| 8 | 9 |   * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 
|---|
| 9 | 10 |   *          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  | 
|---|
| 24 | 11 |   */ | 
|---|
| 25 | 12 |   | 
|---|
| 26 | 13 |  #include <linux/kernel.h> | 
|---|
| .. | .. | 
|---|
| 79 | 66 |   | 
|---|
| 80 | 67 |  	ASSERT_RTNL(); | 
|---|
| 81 | 68 |   | 
|---|
| 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);  | 
|---|
| 84 | 71 |  	if (err < 0) | 
|---|
| 85 | 72 |  		return err; | 
|---|
| 86 | 73 |   | 
|---|
| .. | .. | 
|---|
| 246 | 233 |   | 
|---|
| 247 | 234 |  	ASSERT_RTNL(); | 
|---|
| 248 | 235 |   | 
|---|
| 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);  | 
|---|
| 251 | 238 |  	if (err < 0) | 
|---|
| 252 | 239 |  		return err; | 
|---|
| 253 | 240 |   | 
|---|