- 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
48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
From b77b304bb58f472e8a9d2f3b6d47fffd38d0c905 Mon Sep 17 00:00:00 2001
|
|
From: Andrew Deason <adeason@sinenomine.net>
|
|
Date: Tue, 07 Dec 2021 15:43:35 -0600
|
|
Subject: [PATCH] rxgen: Declare generated PKG_TranslateOpCode()
|
|
|
|
Ever since commit 5c77a6ca (rxgen: add *TranslateOpcode functions to
|
|
XDR code), rxgen generates a PKG_TranslateOpCode function in the
|
|
relevant .xdr.c source, which can translate an RPC opcode into the RPC
|
|
name. But we never declare this function in a header file, making it
|
|
impossible to use without compiler warnings (unless the caller
|
|
declares the function itself).
|
|
|
|
To make it possible to actually use this function, declare this
|
|
function in the generated header file.
|
|
|
|
Reviewed-on: https://gerrit.openafs.org/14871
|
|
Reviewed-by: Cheyenne Wills <cwills@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 9b2c27fc6d299cb0b23eca3e8cb25b7e0c41b11a)
|
|
|
|
Change-Id: I2479ff7f6579769b3319b2939ffde60fe570c880
|
|
---
|
|
|
|
diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c
|
|
index 768e42f..59854f4 100644
|
|
--- a/src/rxgen/rpc_parse.c
|
|
+++ b/src/rxgen/rpc_parse.c
|
|
@@ -2150,6 +2150,8 @@
|
|
{
|
|
f_print(fout,"\nextern int %s%sExecuteRequest(struct rx_call *);\n",
|
|
prefix, PackagePrefix[PackageIndex]);
|
|
+ f_print(fout,"extern char * %s%sTranslateOpCode(int op);\n", prefix,
|
|
+ PackagePrefix[PackageIndex]);
|
|
}
|
|
|
|
static void
|
|
@@ -2161,6 +2163,8 @@
|
|
f_print(fout,"\nextern int %s%sExecuteRequest(struct rx_call *);\n",
|
|
prefix, pprefix);
|
|
f_print(fout,"\nextern int %sOpCodeIndex(int op);\n", PackagePrefix[PackageIndex]);
|
|
+ f_print(fout, "extern char * %s%sTranslateOpCode(int op);\n",
|
|
+ prefix, pprefix);
|
|
}
|
|
|
|
void
|