]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: consume the xfs_warn mountpoint argument libxfs-5.20-sync_2022-07-26
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Jul 2022 21:44:53 +0000 (14:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 26 Jul 2022 19:54:56 +0000 (12:54 -0700)
commitc4e5ad75d85e0740c4ee53b720f9162c11d15a12
tree6b2b07948b560478c6e12c7e85c7d52d7464b443
parentd5874ba20af3d46c005caa1910d2e5c7d77282fb
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