summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-06-06 04:51:22 +0300
committerDarrick J. Wong <djwong@kernel.org>2022-06-16 09:13:32 +0300
commit10930b254d5be1cb4350fb7a456ccd5ea7e3cbd9 (patch)
treea4ce83de600ff391f074e15d53a7ca404c3b6d3a /fs/xfs/xfs_rtalloc.c
parentf4288f01820e2d57722d21874c1fda661003c9b9 (diff)
downloadlinux-10930b254d5be1cb4350fb7a456ccd5ea7e3cbd9.tar.xz
xfs: fix variable state usage
The variable @args is fed to a tracepoint, and that's the only place it's used. This is fine for the kernel, but for userspace, tracepoints are #define'd out of existence, which results in this warning on gcc 11.2: xfs_attr.c: In function ‘xfs_attr_node_try_addname’: xfs_attr.c:1440:42: warning: unused variable ‘args’ [-Wunused-variable] 1440 | struct xfs_da_args *args = attr->xattri_da_args; | ^~~~ Clean this up. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
0 files changed, 0 insertions, 0 deletions