]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: consume the xfs_warn mountpoint argument
authorDarrick J. Wong <djwong@kernel.org>
Wed, 23 Nov 2022 17:09:00 +0000 (09:09 -0800)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Dec 2022 09:18:19 +0000 (10:18 +0100)
commit60066f61ce0340cd62338985dc0f24fda23192d9
treefd2fb39872cd482cbff730e4114d0707f17d0dff
parentb827e2318ea2bb3eabca13a965c2535a1d7289e5
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>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/libxfs_priv.h