Re: [PATCH v1 1/1] nfsd: Mark variable __maybe_unused to avoid W=1 build break

Chuck Lever
2025-11-17T13:49:33Z

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

On Thu, 13 Nov 2025 09:31:31 +0100, Andy Shevchenko wrote:
> Clang is not happy about set but (in some cases) unused variable:
>
> fs/nfsd/export.c:1027:17: error: variable 'inode' set but not used [-Werror,-Wunused-but-set-variable]
>
> since it's used as a parameter to dprintk() which might be configured
> a no-op. To avoid uglifying code with the specific ifdeffery just mark
> the variable __maybe_unused.
>
> [...]

Applied to nfsd-testing, thanks!

[1/1] nfsd: Mark variable __maybe_unused to avoid W=1 build break
commit: 56e9f88b25abf08de6f2b1bfbbb2ddc4e6622d1e

--
Chuck Lever