diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-05-12 21:13:48 +0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-06-09 23:32:59 +0300 |
| commit | 94c281d5e98921b7bfe5c9090f6355a30fffaa65 (patch) | |
| tree | 4be8674864b98bd042db302d4ab2854a5809b956 /include/linux/stackprotector.h | |
| parent | 94e8b24e7daaa50e3af9c66b3cc6a67c942df875 (diff) | |
| download | linux-94c281d5e98921b7bfe5c9090f6355a30fffaa65.tar.xz | |
lockd: Use xdrgen XDR functions for the NLMv3 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 NLM version 3 protocol specification
exactly.
Convert the NULL procedure to use nlm_svc_decode_void and
nlm_svc_encode_void, generated from
Documentation/sunrpc/xdr/nlm3.x. 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.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
