]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: consume the xfs_warn mountpoint argument libxfs-5.20-sync_2022-09-24
authorDarrick J. Wong <djwong@kernel.org>
Tue, 6 Sep 2022 16:40:40 +0000 (09:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 24 Sep 2022 16:10:48 +0000 (09:10 -0700)
commitd15b4eda045909eb0431dfdf18b61103fb9d7c36
tree5b8dcb6ba4ef09f35ba037c52f34354ecc269d26
parentd3e53ab7cdc7fabb8c94137e335634e0ed4691e8
libxfs: consume the xfs_warn mountpoint argument

Fix these warnings because xfs_warn doesn't do anything in userspace:

xfs_alloc.c: In function ‘xfs_alloc_get_rec’:
xfs_alloc.c:246:34: warning: unused variable ‘mp’ [-Wunused-variable]
  246 |         struct xfs_mount        *mp = cur->bc_mp;
      |                                  ^~

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/libxfs_priv.h