Whamcloud - gitweb
LU-17976 build: fix nla_strnid() -Werror=missing-prototypes 37/55537/2
authorJian Yu <yujian@whamcloud.com>
Tue, 25 Jun 2024 23:07:30 +0000 (16:07 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Jul 2024 20:12:50 +0000 (20:12 +0000)
commit3fe8d551cb945c5ad10ebf6fd6e28915e28a8423
treec91ebf5a766cfb9c79a502150b1985b50ea16193
parentf2e544034c083f46f834f6df419882f53882931b
LU-17976 build: fix nla_strnid() -Werror=missing-prototypes

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

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

It also fixes:
- lnet_fault_show_done()
- lnet_fault_show_start()
- lnet_fault_show_dump()
- __ll_dio_user_copy()
- ll_dio_user_copy_helper()

Change-Id: I0225794b3fac2f36aafadff783ca921fbc757edd
Fixes: f1c6623 ("LU-10391 lnet: Fault injection add/del ioctls to netlink")
Fixes: 1fa633c ("LU-17478 clio: parallelize unaligned DIO write copy")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55537
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/lnet/api-ni.c
lustre/obdclass/cl_io.c