Whamcloud - gitweb
LU-17592 build: kernel 6.8 -Werror=missing-prototypes 28/54228/11
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sun, 24 Mar 2024 08:20:15 +0000 (15:20 +0700)
committerJian Yu <yujian@whamcloud.com>
Tue, 2 Apr 2024 22:33:09 +0000 (22:33 +0000)
commit1da648a24984c94cccdf6686ab9c3aed28d32a47
treee2433ad9aa2919bfe5d3a1ebdb6de9e75d425843
parent1861e4ce8ec6d66d17ed73042f39bacb6496685c
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
30 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/ptlrpc/sec_bulk.c
lustre/quota/qsd_lib.c