Skip to content

Fix warnings for RISC-V builds

Sean Chang linux-nfs lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 9 repliesIn review
  2. v32 patches 3 repliesSuperseded
  3. v22 patches 8 repliesSuperseded

Changes in v4 from the cover letter

- Refactor patch 1 to use no_printk() in sunrpc headers instead of marking variables as __maybe_unused. This provides a cleaner, global fix and enables compiler type checking.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sunrpc: fix unused variable warnings by using no_printkinclude/linux/sunrpc/debug.h+2 -29 replies
2/2net: macb: use ethtool_sprintf to fill ethtool stats stringsdrivers/net/ethernet/cadence/macb_main.c+2 -50 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrew LunnChuck Lever
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] Fix warnings for RISC-V builds

This series addresses several compiler warnings found when building the kernel for RISC-V.

The first patch fixes unused variable warnings in the NFS client (including nfs4proc and flexfilelayout) that occur in certain build configurations.

The second patch fixes a format-truncation warning in the MACB ethernet driver by ensuring the snprintf output fits within the destination buffer.

v4:
- Refactor patch 1 to use no_printk() in sunrpc headers instead of marking variables as __maybe_unused. This provides a cleaner, global fix and enables compiler type checking.

v3:
- Expand commit descriptions to include technical details regarding macro expansion, as requested by Andrew Lunn.
- Test the different platform, such as ARM, ARM64, X86_64.

v2:
- Split the original treewide patch into subsystem-specific commits.
- Added more detailed commit descriptions to satisfy checkpatch.

Sean Chang (2):
sunrpc: fix unused variable warnings by using no_printk
net: macb: use ethtool_sprintf to fill ethtool stats strings

 drivers/net/ethernet/cadence/macb_main.c | 7 ++-----
 include/linux/sunrpc/debug.h             | 4 ++--
 2 files changed, 4 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1