Whamcloud - gitweb
LU-17592 build: kernel 6.8 -Werror=missing-prototypes
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 2 Apr 2024 22:49:17 +0000 (15:49 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 7 Apr 2024 19:14:31 +0000 (19:14 +0000)
commit0a935b306e21faec962a167db2d72c8577173d5b
treece070be82fd1ce2e9f23f3c4155ac4a55d1a9af5
parente23f91ed79ac538fa6df6759bf4eee8fcdad41b8
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.

Lustre-change: https://review.whamcloud.com/54228
Lustre-commit: TBD (from 1da648a24984c94cccdf6686ab9c3aed28d32a47)

HPE-bug-id: LUS-12181
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ice5219df5463effe964d2cd2114f003d185337da
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54584
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
32 files changed:
lnet/include/lnet/lnet_rdma.h
lnet/lnet/api-ni.c
lnet/selftest/module.c
lustre/include/cl_object.h
lustre/include/llog_swab.h
lustre/include/lustre_swab.h
lustre/include/obd_class.h
lustre/llite/pcc.c
lustre/llite/vvp_internal.h
lustre/llite/vvp_io.c
lustre/lod/lod_internal.h
lustre/lod/lod_pool.c
lustre/lov/lov_pack.c
lustre/mdd/mdd_dir.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/obdclass/genops.c
lustre/obdclass/llog_swab.c
lustre/obdclass/lustre_compr.c
lustre/obdclass/obd_mount.c
lustre/ofd/ofd_internal.h
lustre/osc/osc_compress.c
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/nodemap_internal.h
lustre/ptlrpc/nodemap_storage.c
lustre/ptlrpc/pack_generic.c
lustre/quota/qsd_lib.c
lustre/tests/kernel/kcompr.c