forked from pool/openafs
cfa65eea8c
- 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
58 lines
1.8 KiB
Diff
58 lines
1.8 KiB
Diff
From 112fb94a608a9a810cc9b43fdf762f15277d9eaa Mon Sep 17 00:00:00 2001
|
|
From: Cheyenne Wills <cwills@sinenomine.net>
|
|
Date: Thu, 08 Feb 2024 11:50:16 -0700
|
|
Subject: [PATCH] afs: Declare init_hckernel_mutex()
|
|
|
|
The function init_hckernel_mutex() (in rand.c) is flagged due to a
|
|
missing prototype 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 a function prototype for init_hckernel_mutex() to afs_osi.h and
|
|
remove the prototype from afs_osi.c
|
|
|
|
There are no functional changes with this commit.
|
|
|
|
Reviewed-on: https://gerrit.openafs.org/15622
|
|
Tested-by: BuildBot <buildbot@rampaginggeek.com>
|
|
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
|
|
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
|
|
(cherry picked from commit ccc2af429710104793fb4659b10697cceab182b3)
|
|
|
|
Change-Id: Ic5eb4584a980657a01a1cb4411c0c1f03b1f3560
|
|
---
|
|
|
|
diff --git a/src/afs/afs_osi.c b/src/afs/afs_osi.c
|
|
index 6f54c63..e8f852e 100644
|
|
--- a/src/afs/afs_osi.c
|
|
+++ b/src/afs/afs_osi.c
|
|
@@ -25,11 +25,6 @@
|
|
* -- On HP called from afsc_link.
|
|
* -- On SGI called from afs_init. */
|
|
|
|
-/* No hckernel-specific header for this prototype. */
|
|
-#ifndef UKERNEL
|
|
-extern void init_hckernel_mutex(void);
|
|
-#endif
|
|
-
|
|
afs_lock_t afs_ftf; /* flush text lock */
|
|
|
|
#ifdef AFS_SGI_ENV
|
|
diff --git a/src/afs/afs_osi.h b/src/afs/afs_osi.h
|
|
index 79c44a9..e3f0e0c 100644
|
|
--- a/src/afs/afs_osi.h
|
|
+++ b/src/afs/afs_osi.h
|
|
@@ -458,4 +458,9 @@
|
|
# define osi_ShouldDeferRemunlink(avc) 0
|
|
#endif
|
|
|
|
+/* No hckernel-specific header for this prototype. */
|
|
+#ifndef UKERNEL
|
|
+extern void init_hckernel_mutex(void);
|
|
+#endif
|
|
+
|
|
#endif /* _AFS_OSI_ */
|