Whamcloud - gitweb
LU-17592 build: kernel 6.8 -Werror=missing-prototypes 28/54228/13
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 15 Apr 2024 18:29:30 +0000 (11:29 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:54:26 +0000 (06:54 +0000)
commit1fc2e5644bfaa7b596c2664c757c8b157bcd3437
tree30ccd525f067cf528c4d959f5aaad211adde426a
parentae6d373bc6af6b9bb74650e27fb4c1bb87bbf4bf
LU-17592 build: kernel 6.8 -Werror=missing-prototypes

Linux commit v6.7-rc4-156-g0fcb70851fbf
  Makefile.extrawarn: turn on missing-prototypes globally

With -Wmissing-prototypes and -Werror cleanup some additional
funtions that are implicitly static and provide declarations
for those that are exported.

Add SERVER_ONLY and SERVER_ONLY_EXPORT_SYMBOL to wrap functions
that are only exported for and used by server components.

Test-Parameters: trivial
HPE-bug-id: LUS-12181
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ice5219df5463effe964d2cd2114f003d185337da
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54228
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
29 files changed:
lnet/include/lnet/lnet_rdma.h
lnet/lnet/api-ni.c
lnet/lnet/lnet_rdma.c
lustre/autoconf/lustre-core.m4
lustre/include/cl_object.h
lustre/include/lustre_swab.h
lustre/include/obd_class.h
lustre/llite/vvp_internal.h
lustre/lod/lod_internal.h
lustre/lod/lod_pool.c
lustre/lov/lov_pack.c
lustre/mdd/mdd_dir.c
lustre/mdt/mdt_hsm_cdt_requests.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/obdclass/genops.c
lustre/obdclass/llog_swab.c
lustre/obdclass/obd_mount.c
lustre/ofd/ofd_internal.h
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam_lvar.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/ptlrpc/llog_client.c
lustre/ptlrpc/nodemap_internal.h
lustre/ptlrpc/nodemap_storage.c
lustre/ptlrpc/pack_generic.c
lustre/quota/qsd_lib.c