Thread (10 messages) 10 messages, 2 authors, 2026-03-20

Re: [PATCH v3 0/3] sunrpc/nfs: cleanup redundant debug checks and refactor macros

From: Sean Chang <hidden>
Date: 2026-03-20 17:43:55
Also in: linux-nfs, lkml

On Fri, Mar 20, 2026 at 8:08 PM Andy Shevchenko
[off-list ref] wrote:
On Thu, Mar 19, 2026 at 10:18:43PM +0800, Sean Chang wrote:
quoted
This series cleans up redundant IS_ENABLED(CONFIG_SUNRPC_DEBUG) guards
across sunrpc, nfsd, and lockd, as these checks are already handled
within the dprintk macros.

Additionally, it refactors the nfs_errorf() macros into a safer
do-while(0) pattern and removes unused nfs_warnf() macros to improve
code maintainability.
Shall we also revert the commit ebae102897e7 ("nfsd: Mark variable
__maybe_unused to avoid W=1 build break") as it seems related to
dprintk() issues?
That's a great catch. I've verified that with the new dprintk() refactoring,
those __maybe_unused attributes are indeed redundant. I will include a
new patch in v4 to remove them and properly credit the cleanup. Thanks!

Best Regards,
Sean
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help