]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: consume the xfs_warn mountpoint argument libxfs-5.20-sync_2022-07-19
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Jul 2022 21:44:53 +0000 (14:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 19 Jul 2022 21:41:53 +0000 (14:41 -0700)
commite522fc0b9489853b466f2cf643587cfe06f1ac4f
tree73cc9c70272745e5689a671d624363d6333309f5
parente3f7a19a4c55a4c757d303e39f08cc59b7a65671
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