Skip to content

Commit 903a7d3

Browse files
committed
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>
1 parent 82c2a36 commit 903a7d3

File tree

1 file changed

+7
-2
lines changed
  • tools/net/sunrpc/xdrgen/templates/C/source_top

1 file changed

+7
-2
lines changed

tools/net/sunrpc/xdrgen/templates/C/source_top/client.j2

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
// XDR specification file: {{ filename }}
44
// XDR specification modification time: {{ mtime }}
55

6-
#include <linux/sunrpc/xprt.h>
6+
#include <linux/types.h>
77

8-
#include "{{ program }}xdr_gen.h"
8+
#include <linux/sunrpc/xdr.h>
9+
#include <linux/sunrpc/xdrgen/_defs.h>
10+
#include <linux/sunrpc/xdrgen/_builtins.h>
11+
#include <linux/sunrpc/xdrgen/nlm4.h>
12+
13+
#include <linux/sunrpc/clnt.h>

0 commit comments

Comments
 (0)