]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: consume the xfs_warn mountpoint argument libxfs-6.0-sync_2022-11-06
authorDarrick J. Wong <djwong@kernel.org>
Tue, 6 Sep 2022 16:40:40 +0000 (09:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 6 Nov 2022 20:31:59 +0000 (12:31 -0800)
commitb3bb756b5ca2c11ebd56cc9e93128aca55e04a8a
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