aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2024-02-22 10:05:37 -0500
committerIngo Molnar <[email protected]>2024-02-28 13:08:37 +0100
commitca4bc2e07b716509fd279d2b449bb42f4263a9c8 (patch)
tree63123ffe5039b9a0800bd965ba040a9e0775dafc /lib/test_fortify/write_overflow-strncpy-src.c
parent6dfee110c6cc7a6c3c1f45a07428c15820b87c1d (diff)
locking/qspinlock: Fix 'wait_early' set but not used warning
When CONFIG_LOCK_EVENT_COUNTS is off, the wait_early variable will be set but not used. This is expected. Recent compilers will not generate wait_early code in this case. Add the __maybe_unused attribute to wait_early for suppressing this W=1 warning. Reported-by: kernel test robot <[email protected]> Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected] Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions