NFS: Address build error when built with W=1
Get series with b4
b4 am [email protected] change-id 20260227-nfs-ff0f0f96fea3Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | NFS: flexfilelayout: return ERR_PTR from nfs4_ff_alloc_deviceid_node() and fix callerfs/ fs/ | +2 | 0 replies | |
| 2/3 | NFS: flexfilelayout: Mark err as __maybe_unused in ff_layout_io_track_ds_errorfs/ | +1 | 0 replies | |
| 3/3 | NFS: nfs4proc: Mark ptr as __maybe_unused in nfs4_proc_create_sessionfs/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] NFS: Address build error when built with W=1
I built x86_64_defconfig with COMPILE_TEST=y and W=1, then saw three build errors from fs/nfs: "error: variable set but not used"
Detailed info could be found in each patch commit log.
With the patchset, kernel build pass.
Signed-off-by Peng Fan <[email protected]>
---
Peng Fan (3):
NFS: flexfilelayout: return ERR_PTR from nfs4_ff_alloc_deviceid_node() and fix caller
NFS: flexfilelayout: Mark err as __maybe_unused in ff_layout_io_track_ds_error
NFS: nfs4proc: Mark ptr as __maybe_unused in nfs4_proc_create_session
fs/nfs/flexfilelayout/flexfilelayout.c | 4 ++-- fs/nfs/flexfilelayout/flexfilelayoutdev.c | 2 +- fs/nfs/nfs4proc.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
---
base-commit: 7d6661873f6b54c75195780a40d66bad3d482d8f
change-id: 20260227-nfs-ff0f0f96fea3
Best regards,
Signature · 1 line
Peng Fan <[email protected]>