public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xfs: Clear a W=1 warning and some __maybe_unused usage
@ 2024-05-02 10:08 John Garry
  2024-05-02 10:08 ` [PATCH v2 1/2] xfs: Clear W=1 warning in xfs_iwalk_run_callbacks() John Garry
  2024-05-02 10:08 ` [PATCH v2 2/2] xfs: Stop using __maybe_unused in xfs_alloc.c John Garry
  0 siblings, 2 replies; 5+ messages in thread
From: John Garry @ 2024-05-02 10:08 UTC (permalink / raw)
  To: chandan.babu, dchinner, djwong, hch; +Cc: linux-xfs, John Garry

For configs XFS_DEBUG and XFS_WARN disabled, for a W=1 build
xfs_iwalk_run_callbacks() generates a warning for unused variable. Clean
that up.

Also remove __maybe_unused usage in xfs_alloc.c, which is for protecting
against the same type of warning.

John Garry (2):
  xfs: Clear W=1 warning in xfs_iwalk_run_callbacks()
  xfs: Stop using __maybe_unused in xfs_alloc.c

 fs/xfs/libxfs/xfs_alloc.c | 6 ++----
 fs/xfs/xfs_iwalk.c        | 5 ++---
 2 files changed, 4 insertions(+), 7 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-02 12:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02 10:08 [PATCH v2 0/2] xfs: Clear a W=1 warning and some __maybe_unused usage John Garry
2024-05-02 10:08 ` [PATCH v2 1/2] xfs: Clear W=1 warning in xfs_iwalk_run_callbacks() John Garry
2024-05-02 12:48   ` Christoph Hellwig
2024-05-02 10:08 ` [PATCH v2 2/2] xfs: Stop using __maybe_unused in xfs_alloc.c John Garry
2024-05-02 12:48   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox