Whamcloud - gitweb
LU-16518 ptlrpc: fix clang build errors
authorTimothy Day <timday@amazon.com>
Wed, 21 Feb 2024 21:14:17 +0000 (13:14 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 3 Mar 2024 10:19:11 +0000 (10:19 +0000)
commitf9842343b8c5eab435cc4a431ca7c1fe6098a839
treed82c0d511983ef6e85f260a9ec9d48503679253f
parent0ccf4e8a56115b33c0456c3c19844d20962a693b
LU-16518 ptlrpc: fix clang build errors

Fixed bugs which cause errors on Clang.

The majority of changes involve adding
defines for the 'ptlrpc_nrs_ctl' enum.
This avoids having to explicitly cast
enums from one type to another.

An unused variable 'req' was removed from
'nrs_tbf_req_get'. A 'strlcpy' in
'sptlrpc_process_config' was copying the
wrong number of bytes. Another variable,
'rc' in 'sptlrpc_lproc_init', seemed to
be neglected unintentionally; this was also
fixed.

Lustre-change: https://review.whamcloud.com/49859
Lustre-commit: 50f28f81b5aa8f8ad1c8585bd7e262910f936e50

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: If994c625199b392198f944f9cd21bbf2142bce69
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54131
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_nrs.h
lustre/include/lustre_nrs_crr.h
lustre/include/lustre_nrs_delay.h
lustre/include/lustre_nrs_orr.h
lustre/include/lustre_nrs_tbf.h
lustre/ptlrpc/nrs_crr.c
lustre/ptlrpc/nrs_delay.c
lustre/ptlrpc/nrs_orr.c
lustre/ptlrpc/nrs_tbf.c
lustre/ptlrpc/sec_config.c
lustre/ptlrpc/sec_lproc.c