Whamcloud - gitweb
LU-13274 uapi: make lustre UAPI headers pass CONFIG_UAPI_HEADER_TEST 15/38215/3
authorJames Simmons <jsimmons@infradead.org>
Mon, 13 Apr 2020 21:37:16 +0000 (17:37 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Apr 2020 16:49:32 +0000 (16:49 +0000)
commitb93ef29660b6ac69d7ffd0f325be02c18835b4d2
tree36f428b2e8ed272481957bce6c9342e363eab4c4
parentab6ddccf78d37afe4f941b6a2074dca25a65cfe7
LU-13274 uapi: make lustre UAPI headers pass CONFIG_UAPI_HEADER_TEST

The linux kernel offers a CONFIG_UAPI_HEADER_TEST that test
if the UAPI headers can be built stand alone. Running this
kernel option against the latest lustre UAPI headers expose
some few issues still left. This patch makes everything
compliant with this kernel option which should cover potential
build issues with userland applications. A few kernel-only
bits of code have been moved to the kernel headers where they
belong.

Change-Id: I1b287c8226dd1085080218fb92e7b31b32f36b07
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/38215
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_disk.h
lustre/include/uapi/linux/lustre/lustre_fiemap.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_ioctl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/llite_internal.h