summarylogtreecommitdiffstats
path: root/0001-afs-Make-afs_AllocDCache-static.patch
diff options
context:
space:
mode:
authorMichael Laß2024-03-17 00:22:39 +0100
committerMichael Laß2024-03-17 00:22:39 +0100
commitc9cd167560a9f0632a755970af6c1349db46d0af (patch)
treee85fbd9123e37bcc1bf59a28770f22b05d2fdc85 /0001-afs-Make-afs_AllocDCache-static.patch
parent295ad0060c18d91abb448c7440f66b9acef7db49 (diff)
downloadaur-c9cd167560a9f0632a755970af6c1349db46d0af.tar.gz
Add patches for Linux 6.8
Diffstat (limited to '0001-afs-Make-afs_AllocDCache-static.patch')
-rw-r--r--0001-afs-Make-afs_AllocDCache-static.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0001-afs-Make-afs_AllocDCache-static.patch b/0001-afs-Make-afs_AllocDCache-static.patch
new file mode 100644
index 000000000000..ebbc523a5f38
--- /dev/null
+++ b/0001-afs-Make-afs_AllocDCache-static.patch
@@ -0,0 +1,35 @@
+From 78e644655a3858113f33f534d018220ab2eaabc0 Mon Sep 17 00:00:00 2001
+From: Andrew Deason <adeason@sinenomine.net>
+Date: Thu, 28 Jun 2018 12:50:52 -0500
+Subject: [PATCH 01/29] afs: Make afs_AllocDCache static
+
+Nothing using afs_AllocDCache outside of afs_dcache.c. Declare the
+function static, to ensure that nobody else uses it, and to maybe
+allow for more compiler optimization.
+
+Reviewed-on: https://gerrit.openafs.org/13226
+Tested-by: BuildBot <buildbot@rampaginggeek.com>
+Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
+(cherry picked from commit 4ab70de9641807bd06056f0c1ac79550453b9574)
+
+Change-Id: I6fd9e31c4b2e862174402f731a77c91599893223
+---
+ src/afs/afs_dcache.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c
+index 3572f2f23..46d0bdba5 100644
+--- a/src/afs/afs_dcache.c
++++ b/src/afs/afs_dcache.c
+@@ -1674,7 +1674,7 @@ afs_AllocDiscardDSlot(afs_int32 lock)
+ *
+ * \return The new dcache.
+ */
+-struct dcache *
++static struct dcache *
+ afs_AllocDCache(struct vcache *avc, afs_int32 chunk, afs_int32 lock,
+ struct VenusFid *ashFid)
+ {
+--
+2.44.0
+