- update to openafs-1.8.11 - apply upstream patches for kernel 6.8 * 056a7a8.diff * 05ac614.diff * 073adec.diff * 0d9f6cf.diff * 0e983a9.diff * 112fb94.diff * 1e1bf8e.diff * 2056ce8.diff * 5312d06.diff * 67e48c8.diff * 6b20756.diff * 743d72f.diff * 7cae97b.diff * 81b910a.diff * 87ab04a.diff * 9f052c1.diff * a14a9ad.diff * a87845d.diff * aae8b00.diff * b77b304.diff * d1c89ac.diff * d9f3a2c.diff * db91384.diff * dffd0e1.diff * e0f425a.diff * e157f8f.diff * e428053.diff * ef7b8c5.diff * f5bafb0.diff * fca6fd9.diff OBS-URL: https://build.opensuse.org/request/show/1170220 OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=123
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From 743d72f6b6aba44599099c7cbc879435f9005e3a Mon Sep 17 00:00:00 2001
|
|
From: Cheyenne Wills <cwills@sinenomine.net>
|
|
Date: Wed, 03 Apr 2024 11:36:54 -0600
|
|
Subject: [PATCH] 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
|
|
---
|
|
|
|
diff --git a/src/afs/LINUX/osi_misc.c b/src/afs/LINUX/osi_misc.c
|
|
index aa5d5fc..27f73cd 100644
|
|
--- a/src/afs/LINUX/osi_misc.c
|
|
+++ b/src/afs/LINUX/osi_misc.c
|
|
@@ -155,7 +155,8 @@
|
|
|
|
|
|
/* This could use some work, and support on more platforms. */
|
|
-int afs_thread_wrapper(void *rock)
|
|
+static int
|
|
+afs_thread_wrapper(void *rock)
|
|
{
|
|
void (*proc)(void) = rock;
|
|
__module_get(THIS_MODULE);
|