summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2026-07-06 18:31:54 +0000
committerAlex Williamson <alex@shazbot.org>2026-08-12 12:00:05 -0600
commit37ffa24c9d07edcd414d34283e02af3f3866cf12 (patch)
treeb3b811644614e9bc08e8e1bb2a1cb487ae74c886 /scripts/objdiff
parent28ca5f67e1a79f62ed7988674fb07a8fc9eab8d2 (diff)
downloadlinux-37ffa24c9d07edcd414d34283e02af3f3866cf12.tar.gz
linux-37ffa24c9d07edcd414d34283e02af3f3866cf12.zip
selftests: harness: Mark test fixture objects __maybe_unused
Mark _##fixture_name##_##test_name##_object __maybe_unused since it may not ever be read. This pointer is only read in XFAIL_ADD(), which tests are not required to use. clang made a change to -Wunused-but-set-variable (split out into its own subwarning, -Wunused-but-set-global) that causes this warning to be emitted for various selftests and can be upgraded to an error in selftest that set -Werror. VFIO selftests have been broken since commit ff556bd98348 ("vfio: selftests: Add -Wall and -Werror to the Makefile"), and the net selftests builds have been noisy due to -Wall. Fixes: 24cf65a62266 ("selftests/harness: Share _metadata between forked processes") Reported-by: Kuniyuki Iwashima <kuniyu@google.com> Reported-by: Aaron Lewis <aaronlewis@google.com> Reviewed-by: Alex Williamson <alex@shazbot.org> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: David Matlack <dmatlack@google.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20260706183154.2660394-1-dmatlack@google.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions