Linux: Fix functions without prototypes 94/15194/5
authorCheyenne Wills <cwills@sinenomine.net>
Fri, 4 Nov 2022 14:33:39 +0000 (08:33 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 8 Dec 2022 17:31:48 +0000 (12:31 -0500)
commit63db2de22ef75292463ec1f0979e32afc05d0b95
tree58d26c05653013a13fc0252f6d32d0afa8225576
parente2ad1ca5f7355062e808f1717e7410b7ae893371
Linux: Fix functions without prototypes

The Linux kernel build has -Wstrict-prototypes enabled and flags
functions without a proper prototype.  With clang-16 these warnings are
reported as errors when the kernel is configured with CONFIG_WERROR or
when openafs is configured with --enable-checking.

    src/libafs/MODLOAD-6.1.0-rc3-SP/osi_alloc.c:339:32: error: a
       function declaration without a prototype is deprecated in all
       versions of C [-Werror,-Wstrict-prototypes]
   osi_linux_verify_alloced_memory()
                                  ^
                                   void

Update function prototypes to comply with -Wstrict-prototypes.

There are no functional changes with this commit.

Change-Id: I31aeb6e40bd3c6d9bf519d80bbed9b031b99df84
Reviewed-on: https://gerrit.openafs.org/15194
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/LINUX/osi_alloc.c
src/afs/LINUX/osi_sysctl.c
src/afs/afs_pag_call.c