All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Three xdrgen short subjects
@ 2025-12-26 15:19 Chuck Lever
  2025-12-26 15:19 ` [PATCH 1/3] xdrgen: Extend error reporting to AST transformation phase Chuck Lever
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chuck Lever @ 2025-12-26 15:19 UTC (permalink / raw)
  To: NeilBrown, Jeff Layton, Olga Kornievskaia, Dai Ngo, Tom Talpey
  Cc: linux-nfs, Chuck Lever

From: Chuck Lever <chuck.lever@oracle.com>

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

-- 
2.52.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-27 23:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-26 15:19 [PATCH 0/3] Three xdrgen short subjects Chuck Lever
2025-12-26 15:19 ` [PATCH 1/3] xdrgen: Extend error reporting to AST transformation phase Chuck Lever
2025-12-26 15:19 ` [PATCH 2/3] xdrgen: Emit a max_arg_sz macro Chuck Lever
2025-12-26 15:19 ` [PATCH 3/3] xdrgen: Add enum value validation to generated decoders Chuck Lever
2025-12-26 23:44   ` NeilBrown
2025-12-27 14:17     ` Chuck Lever
2025-12-27 23:02       ` NeilBrown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.