summaryrefslogtreecommitdiff
path: root/tools/net
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-10-22 13:44:08 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-11-18 20:23:06 -0500
commit903a7d37d9ea03cfed21040467d3d345d1e6fc76 (patch)
tree6d4a8a30dedb11407159755bf5ca3efbd6b71542 /tools/net
parent82c2a36179d9bd00b792f4215cc4f71ca2d4c3a8 (diff)
downloadlwn-903a7d37d9ea03cfed21040467d3d345d1e6fc76.tar.gz
lwn-903a7d37d9ea03cfed21040467d3d345d1e6fc76.zip
xdrgen: Update the files included in client-side source code
In particular, client-side source code needs the definition of "struct rpc_procinfo" and does not want header files that pull in "struct svc_rqst". Otherwise, the source does not compile. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/net')
-rw-r--r--tools/net/sunrpc/xdrgen/templates/C/source_top/client.j29
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2 b/tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2
index e3a802cbc4d7..c5518c519854 100644
--- a/tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2
+++ b/tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2
@@ -3,6 +3,11 @@
// XDR specification file: {{ filename }}
// XDR specification modification time: {{ mtime }}
-#include <linux/sunrpc/xprt.h>
+#include <linux/types.h>
-#include "{{ program }}xdr_gen.h"
+#include <linux/sunrpc/xdr.h>
+#include <linux/sunrpc/xdrgen/_defs.h>
+#include <linux/sunrpc/xdrgen/_builtins.h>
+#include <linux/sunrpc/xdrgen/nlm4.h>
+
+#include <linux/sunrpc/clnt.h>