Whamcloud - gitweb
LU-13903 utils: move userland only nidstr.h handling 15/39115/5
authorJames Simmons <jsimmons@infradead.org>
Mon, 8 Mar 2021 14:09:40 +0000 (09:09 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Mar 2021 18:16:47 +0000 (18:16 +0000)
commit062809b1313ac7000e3476c96cbbe5d017f10875
treebad57638f6a28ea3c60617a2edb751e340129b1f
parentfdce7be68eb7ab2fc7945e81d2dc49f3595ec790
LU-13903 utils: move userland only nidstr.h handling

The function cfs_expand_nidlist() no longer exist for kernel
internals. We can move the function prototype from the UAPI
header to string.h which is a libcfs user land header.
The structure netstrfns that is defined in a UAPI header
has been adding user land only handling. Additional its
use struct list_head which will confuse reviewers since
kernel developers see this as a kernel only thing.

Test-Parameters: trivial

Change-Id: Ifc3c87f6d3237a94d282d009455ff389278e73ea
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/39115
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/util/string.h
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/nidstr.h
lnet/lnet/nidstrings.c