summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-09-16 12:28:35 -0400
committerChuck Lever <cel@kernel.org>2026-10-11 23:12:16 -0400
commitc9d6f6ba2d15f8df32e04d4329ebf3c10bf8285b (patch)
treeefe34c4197b76169b3fc2017cab357405c15a40a /tools/lib/python
parentffbf5434ee57fb93f400705ea2674897ac7dc5f9 (diff)
downloadlinux-next-c9d6f6ba2d15f8df32e04d4329ebf3c10bf8285b.tar.gz
linux-next-c9d6f6ba2d15f8df32e04d4329ebf3c10bf8285b.zip
NFSD: Remove '#include "xdr.h"' from fs/nfsd/xdr3.h
Separate the dependencies between fs/nfsd/xdr3.h and fs/nfsd/xdr.h so that NFSD's NFSv2 and NFSv3 implementations can be converted independently to use xdrgen. The only reason xdr3.h includes xdr.h is to pick up the definition of struct nfsd_fhandle. xdr3.h does not name the structure itself; its consumers nfs3proc.c and nfs3xdr.c do, reaching the definition through xdr3.h. That structure wraps a single struct svc_fh, which is defined in nfsfh.h, a header both xdr.h and xdr3.h already include via vfs.h. Move struct nfsd_fhandle next to svc_fh in nfsfh.h so the two XDR headers share one definition and xdr3.h no longer depends on xdr.h. nfs2acl.c, which includes both headers, then sees that single definition instead of a clashing pair. Stripping xdr.h to its own dependencies also removes the transitive route by which nfsxdr.c and nfs3xdr.c reached nfsd.h. Both expand the nfserr_* and nfs_ok status-code macros that nfsd.h defines, so each gains a direct #include of nfsd.h in place of the one xdr.h used to supply. As a clean-up, the #includes at the top of both header files are made the same. Acked-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260916162859.2051-7-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions