summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-09-16 12:28:37 -0400
committerChuck Lever <cel@kernel.org>2026-10-11 23:12:20 -0400
commit8fdb99934823411544732276e43723189b32a331 (patch)
tree6eca879424e9eaaa53029a9214f6c62fb851d879 /tools/lib/python
parenta19c7990d525bc462bf484860bc1874682a50924 (diff)
downloadlinux-next-8fdb99934823411544732276e43723189b32a331.tar.gz
linux-next-8fdb99934823411544732276e43723189b32a331.zip
NFSD: Use xdrgen XDR functions for the NFSv2 NULL procedure
Hand-written XDR encoders and decoders are difficult to maintain and can diverge from protocol specifications. Migrating to xdrgen-generated code improves type safety and ensures the implementation matches the NFS version 2 protocol specification exactly. Convert the NULL procedure to use xdrgen_svc_decode_void and xdrgen_svc_encode_void, the built-ins declared in include/linux/sunrpc/xdrgen/_builtins.h. NULL has no arguments or results, so it is the first procedure converted. NULL returns no XDR-encoded data, so pc_xdrressize is set to XDR_void. The argzero field is also set to zero since xdrgen decoders initialize all decoded values. Acked-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260916162859.2051-9-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions