Commit 10930b2
Darrick J. Wong
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>1 parent f4288f0 commit 10930b2
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | 1444 | | |
1446 | 1445 | | |
1447 | 1446 | | |
1448 | 1447 | | |
1449 | | - | |
| 1448 | + | |
1450 | 1449 | | |
1451 | 1450 | | |
1452 | 1451 | | |
| |||
0 commit comments