Whamcloud - gitweb
LU-13274 uapi: make lnet UAPI headers C99 compliant 71/37971/11
authorJames Simmons <jsimmons@infradead.org>
Tue, 24 Mar 2020 18:49:48 +0000 (14:49 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:53:26 +0000 (17:53 +0000)
commit742897a967cff5be53c447d14b17ae405c2b31f2
tree9c1c308bc40f208d2b5dc40084f71f10dce0fc91
parent777b04a09356afe425e9dc3dd3de385109990b52
LU-13274 uapi: make lnet UAPI headers C99 compliant

Attempting to compile strict C99 user land applications or
libraries with the Lustre UAPI headers will fail. These same
errors can be seen by enabling CONFIG_UAPI_HEADER_TEST as well.
Update the LNet UAPI headers to be compilable with -std=c99.
Add LNet test covering UAPI header handling.

Test-Parameters: trivial testlist=sanity-lnet

Change-Id: Ic1c30ed2d4d9d1d7f11b657d3817a05161367e13
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/37971
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
20 files changed:
Makefile.in
autoMakefile.am
config/lustre-build.m4
libcfs/include/libcfs/util/ioctl.h
lnet/include/uapi/linux/lnet/libcfs_ioctl.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/include/uapi/linux/lnet/lnetctl.h
lnet/include/uapi/linux/lnet/lnetst.h
lnet/include/uapi/linux/lnet/nidstr.h
lnet/utils/Makefile.am
lnet/utils/lnetconfig/Makefile.am
lnet/utils/lnetconfig/cyaml.h [moved from lnet/include/cyaml.h with 100% similarity]
lnet/utils/lnetctl.c
lustre/autoconf/lustre-core.m4
lustre/include/lustre_handles.h
lustre/include/lustre_import.h
lustre/obdclass/lu_object.c
lustre/tests/sanity-lnet.sh
lustre/utils/Makefile.am
lustre/utils/lfs.c