Skip to content

sunrpc: Fix W=1 compiler warnings

Geert Uytterhoeven linux-nfs lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 4 repliesIn review

Changes in v3 from the cover letter

- New patch "sunrpc: Wrap read accesses to rpc_task.tk_pid",
- Add Acked-by.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sunrpc: Wrap read accesses to rpc_task.tk_pidfs/nfs/filelayout/filelayout.c fs/nfs/flexfilelayout/flexfilelayout.c include/linux/sunrpc/sched.h +2 more+21 -142 replies
2/2sunrpc: Use no_printk() in dfprintk*() dummiesfs/lockd/svclock.c include/linux/sunrpc/debug.h+3 -52 replies

Reviews trailers per patch

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

PatchJeff LaytonBenjamin Coddington
1/2R-b
2/2A-b R-b

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

Read the v3 thread

Cover letter [PATCH -next v3 0/2] sunrpc: Fix W=1 compiler warnings

Hi all,

This patch series fixes W=1 compiler warnings in sunrpc, related to variables that are used only when debugging is enabled.

Changes compared to v2:
- New patch "sunrpc: Wrap read accesses to rpc_task.tk_pid",
- Add Acked-by.

Changes compared to v1:
- s/uncontionally/unconditionally/,
- Drop CONFIG_SUNRPC_DEBUG check in fs/lockd/svclock.c to fix build failure.

Thanks for your comments!

Geert Uytterhoeven (2):
sunrpc: Wrap read accesses to rpc_task.tk_pid
sunrpc: Use no_printk() in dfprintk*() dummies

 fs/lockd/svclock.c                     |  2 --
 fs/nfs/filelayout/filelayout.c         | 12 ++++++------
 fs/nfs/flexfilelayout/flexfilelayout.c |  9 +++------
 include/linux/sunrpc/debug.h           |  6 +++---
 include/linux/sunrpc/sched.h           | 10 ++++++++++
 net/sunrpc/clnt.c                      |  2 +-
 net/sunrpc/debugfs.c                   |  2 +-
 7 files changed, 24 insertions(+), 19 deletions(-)
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds