summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-07-17 14:41:08 -0400
committerChuck Lever <cel@kernel.org>2026-08-26 16:40:47 -0400
commit5fadac840d935b5391491d9b678e66604d4f673e (patch)
tree3fc22d4f0cde4c1cb4ddba58fd4bcc5d38424db1 /scripts/Makefile.thinlto
parentf30b85240517832cdd15c217a8e2de6560d3b045 (diff)
downloadlinux-next-5fadac840d935b5391491d9b678e66604d4f673e.tar.gz
linux-next-5fadac840d935b5391491d9b678e66604d4f673e.zip
NFSD: Move pre-xdr'ed status codes out of nfsd.h
nfsd.h is included by nearly every NFSD translation unit, so its include of <linux/nfs4.h> reaches all of them, whether or not they touch NFSv4. That include existed solely for the block of pre-xdr'ed nfserr_* values at the end of the file: several of those values, such as nfserr_delay and nfserr_admin_revoked, are built from NFS4ERR_* constants defined in nfs4.h. The NFSD-internal error enum that follows the block (NFSERR_EOF and friends) is anchored at an impossible nfsstat4 value, thus it also needs nothing from nfs4.h. But these codes are used by all NFS versions, so their new home must be version-neutral. Move the pre-xdr'ed value block and the internal error enum into a new fs/nfsd/nfserr.h, which includes nfs4.h itself, and drop the nfs4.h include from nfsd.h. Include nfserr.h directly from each translation unit that references the pre-xdr'ed values or the internal error codes, rather than carrying it in a widely-included header. A translation unit that includes nfsd.h without using the error block no longer pulls in nfs4.h. The ones that reference the block can still reach it through nfserr.h. Reviewed-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260717184112.507548-3-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions