The following commit has been merged in the master branch: commit 85781d7e83ae4501d8ab267bf55ef63f90f63101 Author: Cheyenne Wills <cwi...@sinenomine.net> Date: Thu Feb 15 09:00:05 2024 -0700
afs: Move function prototypes into headers Several .c files contain external function prototypes, while the implementing files do not have these prototypes. Move these prototypes into header files so that the prototypes are available to both the caller and the implementation. Because the file holding the implementation does not have prototypes, these functions are flagged when building against a Linux 6.8 kernel (which sets the -Wmissing-declarations and -Wmissing-prototypes compiler flags as default). Linux 6.8 commit: 'Makefile.extrawarn: turn on missing-prototypes globally' (0fcb70851f). When building against a kernel with CONFIG_WERROR=y, the build fails. Add the prototypes for the following to afs_prototypes.h: exporter_add afs_syscall (AFS_LINUX_ENV) BlobScan Remove the prototypes from the .c files where they are referenced. Change-Id: Ifc75cafe0132bb4cb8714062253f08874be7c06d Reviewed-on: https://gerrit.openafs.org/15642 Reviewed-by: Andrew Deason <adea...@sinenomine.net> Tested-by: BuildBot <build...@rampaginggeek.com> Reviewed-by: Mark Vitale <mvit...@sinenomine.net> Reviewed-by: Benjamin Kaduk <ka...@mit.edu> src/afs/LINUX/osi_ioctl.c | 3 --- src/afs/LINUX/osi_syscall.c | 3 --- src/afs/LINUX/osi_vnodeops.c | 2 -- src/afs/VNOPS/afs_vnop_lookup.c | 2 -- src/afs/afs_nfsclnt.c | 1 - src/afs/afs_prototypes.h | 7 +++++++ 6 files changed, 7 insertions(+), 11 deletions(-) -- OpenAFS Master Repository _______________________________________________ OpenAFS-cvs mailing list OpenAFS-cvs@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-cvs