Go to file
Cheyenne Wills dfb6b53a68 Linux: Define afs_thread_wrapper() as static
When building against a Linux 6.8 kernel, functions that are missing
prototypes or declarations are flagged.

We can add the static attribute to functions that are not referenced
outside of the file that implements them to avoid having these functions
flagged by the compiler.

These functions are flagged due to missing prototypes 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.

This is an openafs-1.8.x specific commit.

The function afs_thread_wrapper() in LINUX/osi_misc.c on the master
branch was changed to a static function with commit:
 'afs: Drop GLOCK for various Rx calls' (d5e1428a3b)
However this is a larger change than needed to fix the build problem and
the commit could have a significant impact for 1.8.x since it is
changing rx locking.  To avoid introducing such a change, just change
the afs_thread_wrapper() to static as a 1.8.x specific commit.

There are no functional changes in this commit.

Change-Id: I4edc61e6a4989c16ccf41b935e205dbf209bf2a5
Reviewed-on: https://gerrit.openafs.org/15727
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
2024-05-16 12:43:53 -04:00
build-tools build: package ltmain.sh in the libafs_tree 2023-10-05 08:39:33 -04:00
doc Add command fallback to server config 2023-08-17 13:13:55 -04:00
src Linux: Define afs_thread_wrapper() as static 2024-05-16 12:43:53 -04:00
tests Move key-related warnings to common server code 2023-03-30 11:23:38 -04:00
.gitignore Remove alpha_dux/alpha_osf references 2023-01-20 09:22:36 -05:00
.gitreview Add .gitreview 2018-02-09 21:48:12 -05:00
.mailmap git: add a mailmap file 2016-09-25 21:05:23 -04:00
.splintrc
acinclude.m4 dir: Introduce struct DirEntryFlex 2024-01-06 14:53:33 -05:00
CODING gcc: Avoid false positive use-after-free in crypto 2023-08-17 13:08:32 -04:00
configure-libafs.ac Make OpenAFS 1.8.11 2024-03-08 18:09:08 -05:00
configure.ac Make OpenAFS 1.8.11 2024-03-08 18:09:08 -05:00
CONTRIBUTING
INSTALL configure: Add platform rs_aix73 2023-04-13 16:58:38 -04:00
libafsdep
LICENSE Use autoconf-archive m4 from src/external 2022-08-04 12:26:41 -04:00
Makefile-libafs.in
Makefile.in build: Add rpm target 2023-08-17 13:23:40 -04:00
NEWS Make OpenAFS 1.8.11 2024-03-08 18:09:08 -05:00
NTMakefile WINNT: Build bubasics before audit 2020-01-25 15:53:31 -05:00
README Tweak grammar in README 2015-12-28 19:32:17 -05:00
README-WINDOWS
regen.sh Use autoconf-archive m4 from src/external 2022-08-04 12:26:41 -04:00

AFS is a distributed file system that enables users to share and
access all of the files stored in a network of computers as easily as
they access the files stored on their local machines. The file system is
called distributed for this exact reason: files can reside on many
different machines, but are available to users on every machine.

OpenAFS 1.0 was originally released by IBM under the terms of the
IBM Public License 1.0 (IPL10).  For details on IPL10 see the LICENSE
file in this directory.  The current OpenAFS distribution is licensed
under a combination of the IPL10 and many other licenses as granted by
the relevant copyright holders.  The LICENSE file in this directory
contains more details, thought it is not a comprehensive statement.

See INSTALL for information about building and installing OpenAFS
on various platforms.

See CODING for developer information and guidelines.

See NEWS for recent changes to OpenAFS.