mbox series

[v2,0/2] xfs: Clear a W=1 warning and some __maybe_unused usage

Message ID 20240502100826.3033916-1-john.g.garry@oracle.com (mailing list archive)
Headers show
Series xfs: Clear a W=1 warning and some __maybe_unused usage | expand

Message

John Garry May 2, 2024, 10:08 a.m. UTC
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(-)