Whamcloud - gitweb
LU-6142 lustre: mark strings in char arrays as const 42/39742/2
authorMr NeilBrown <neilb@suse.de>
Thu, 27 Aug 2020 04:34:25 +0000 (14:34 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:43:19 +0000 (21:43 +0000)
commit734d6eb11b572a9a2001419a16ae7b0f9ed9643c
tree4fe883d6520e4bfad8641005b6105e427837c9fd
parent3e76334402a71e37aed4e9a5166d0141e30af375
LU-6142 lustre: mark strings in char arrays as const

Most array of strings are marked 'const', but the strings within the
arrays often aren't.
This patch mark all strings in const arrays of strings as const.
This allows them to be placed in read-only memory.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I93b627e646e446fc48d9b76f1d5e9da9d12b4395
Reviewed-on: https://review.whamcloud.com/39742
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
lustre/include/obd_cksum.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c
lustre/llite/lproc_llite.c
lustre/mgs/mgs_nids.c
lustre/obdclass/cl_object.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/scrub.c
lustre/osc/osc_cache.c
lustre/target/out_lib.c
lustre/utils/debug.c
lustre/utils/gss/lgss_utils.c
lustre/utils/gss/lsupport.c
lustre/utils/liblustreapi_layout.c