Whamcloud - gitweb
LU-16518 utils: fix unused function errors 01/49901/5
authorTimothy Day <timday@amazon.com>
Fri, 3 Feb 2023 03:32:59 +0000 (03:32 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:35:11 +0000 (14:35 +0000)
commit0991267eab728e9a6e49a31e80ea91b865159b7f
tree6762af440d28e329a86b5d31648ac1d0ac8395c7
parentc755373c567090c49589e5aa0d3134847d4b952e
LU-16518 utils: fix unused function errors

Clang has default errors related to unused functions.
The errors related to 'fid_flatten' and 'fid_flatten32'
were resolved by moving the definitions of these
functions to the 'lustre_fid' header. This is a better
place for them, since they are small 'static inline'
functions and has the added benefit of cutting down
code duplication.

The error related to the 'static inline' function
'list_replace_init' was resolved by moving it to
'ofd_access_batch.h'.

The userspace implementation of 'fid_hash' has been
moved to the 'lustreapi.h' header.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I9714a2f36910c871c0a4579cf9400cb9ba72ec27
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49901
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustreapi.h
lustre/include/lustre_fid.h
lustre/include/uapi/linux/lustre/lustre_fid.h
lustre/llite/lcommon_cl.c
lustre/utils/Makefile.am
lustre/utils/liblustreapi_fid.c
lustre/utils/llsom_sync.c
lustre/utils/ofd_access_batch.c
lustre/utils/ofd_access_batch.h