Whamcloud - gitweb
LU-17945 lnet: fix nla_extract_val() -Werror=missing-prototypes 13/55413/2
authorJian Yu <yujian@whamcloud.com>
Wed, 12 Jun 2024 21:38:10 +0000 (14:38 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Jun 2024 03:32:50 +0000 (03:32 +0000)
commit3e8d005bc94d82dfc8010df5350fbf4938a4e547
tree53bd2d1fbb905d7ee299dbf59613993457534d5c
parentbffafaa5273109cea0e3b2a15d7a0b7ae965daa8
LU-17945 lnet: fix nla_extract_val() -Werror=missing-prototypes

This patch explicitly defines nla_extract_val() as a static function
to fix the following build failure:

lnet/lnet/api-ni.c:2888:1: error:
no previous prototype for 'nla_extract_val' [-Werror=missing-prototypes]
 2888 | nla_extract_val(struct nlattr **attr, int *rem,
      | ^~~~~~~~~~~~~~~

Test-Parameters: trivial testlist=sanity-lnet

Change-Id: Ieb11d25ea8fcd19b715e2decf958cfd9d920bcc8
Fixes: 629d80d ("LU-10003 lnet: migrate fail nid to Netlink")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55413
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c