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
72 lines
2.1 KiB
Diff
72 lines
2.1 KiB
Diff
From 2056ce8ae0d617d663e6181573c982994a1836db Mon Sep 17 00:00:00 2001
|
|
From: Cheyenne Wills <cwills@sinenomine.net>
|
|
Date: Fri, 12 Jan 2024 15:30:23 -0700
|
|
Subject: [PATCH] rx: Add static attribute to internal functions
|
|
|
|
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.
|
|
|
|
There are no functional changes in this commit.
|
|
|
|
Reviewed-on: https://gerrit.openafs.org/15626
|
|
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
|
|
Tested-by: BuildBot <buildbot@rampaginggeek.com>
|
|
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
|
|
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
|
|
(cherry picked from commit 55adceba2d561ec4e89235de329782a68e603a11)
|
|
|
|
Change-Id: I1b2a6e1c07bd4b75b7b83e177f17865eb903e488
|
|
---
|
|
|
|
diff --git a/src/rx/rx.c b/src/rx/rx.c
|
|
index aaec609..d6c52c3 100644
|
|
--- a/src/rx/rx.c
|
|
+++ b/src/rx/rx.c
|
|
@@ -6513,7 +6513,7 @@
|
|
return -1;
|
|
}
|
|
|
|
-void
|
|
+static void
|
|
rxi_NatKeepAliveEvent(struct rxevent *event, void *arg1,
|
|
void *dummy, int dummy2)
|
|
{
|
|
@@ -6615,7 +6615,7 @@
|
|
* declared dead; if nothing has been sent for a while, we send a
|
|
* keep-alive packet (if we're actually trying to keep the call alive)
|
|
*/
|
|
-void
|
|
+static void
|
|
rxi_KeepAliveEvent(struct rxevent *event, void *arg1, void *dummy,
|
|
int dummy2)
|
|
{
|
|
@@ -6656,7 +6656,7 @@
|
|
}
|
|
|
|
/* Does what's on the nameplate. */
|
|
-void
|
|
+static void
|
|
rxi_GrowMTUEvent(struct rxevent *event, void *arg1, void *dummy, int dummy2)
|
|
{
|
|
struct rx_call *call = arg1;
|
|
@@ -8266,7 +8266,7 @@
|
|
static int rxi_monitor_peerStats = 0;
|
|
|
|
|
|
-void
|
|
+static void
|
|
rxi_ClearRPCOpStat(rx_function_entry_v1_p rpc_stat)
|
|
{
|
|
rpc_stat->invocations = 0;
|