Skip to content

Three xdrgen short subjects

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xdrgen: Extend error reporting to AST transformation phasetools/net/sunrpc/xdrgen/subcmds/declarations.py tools/net/sunrpc/xdrgen/subcmds/definitions.py tools/net/sunrpc/xdrgen/subcmds/lint.py +2 more+67 -50 replies
2/3xdrgen: Emit a max_arg_sz macrotools/net/sunrpc/xdrgen/generators/program.py tools/net/sunrpc/xdrgen/subcmds/definitions.py tools/net/sunrpc/xdrgen/templates/C/program/maxsize/max_args.j2+39 -10 replies
3/3xdrgen: Add enum value validation to generated decodersfs/nfsd/nfs4xdr_gen.c fs/nfsd/nfs4xdr_gen.h include/linux/sunrpc/xdrgen/nfs4_1.h +7 more+156 -283 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNeilBrown
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Three xdrgen short subjects

From: Chuck Lever <[email protected]>

While working on converting lockd to uses xdrgen, I noticed these issues in the xdrgen tool.

Chuck Lever (3):
xdrgen: Extend error reporting to AST transformation phase
xdrgen: Emit a max_arg_sz macro
xdrgen: Add enum value validation to generated decoders

 fs/nfsd/nfs4xdr_gen.c                         | 105 ++++++++++++++----
 fs/nfsd/nfs4xdr_gen.h                         |   2 +-
 include/linux/sunrpc/xdrgen/nfs4_1.h          |   8 +-
 tools/net/sunrpc/xdrgen/generators/enum.py    |   9 +-
 tools/net/sunrpc/xdrgen/generators/program.py |  35 +++++-
 .../net/sunrpc/xdrgen/subcmds/declarations.py |   8 +-
 .../net/sunrpc/xdrgen/subcmds/definitions.py  |  10 +-
 tools/net/sunrpc/xdrgen/subcmds/lint.py       |   8 +-
 tools/net/sunrpc/xdrgen/subcmds/source.py     |  11 +-
 .../xdrgen/templates/C/enum/decoder/enum.j2   |  11 ++
 .../templates/C/enum/decoder/enum_be.j2       |  20 ++++
 .../templates/C/program/maxsize/max_args.j2   |   3 +
 tools/net/sunrpc/xdrgen/xdr_ast.py            |   6 +-
 tools/net/sunrpc/xdrgen/xdr_parse.py          |  54 ++++++++-
 tools/net/sunrpc/xdrgen/xdrgen                |   6 +
 15 files changed, 262 insertions(+), 34 deletions(-)
 create mode 100644 tools/net/sunrpc/xdrgen/templates/C/program/maxsize/max_args.j2
Signature · 1 line
2.52.0