]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xdrgen: Update the files included in client-side source code
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Oct 2024 17:44:08 +0000 (13:44 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 01:23:06 +0000 (20:23 -0500)
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>
tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2

index e3a802cbc4d752fab5ccdcf9f3ef4ae876e890ae..c5518c519854a0826f109676bb7fc1a0144a83bb 100644 (file)
@@ -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>