summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAndrea Righi <arighi@nvidia.com>2026-05-10 20:52:11 +0300
committerTejun Heo <tj@kernel.org>2026-05-11 05:03:05 +0300
commit3788e32516530dee66cf9186f846480a16799b05 (patch)
tree1ee995aa65b72f39a9f758cdfc0d9bd1d733a2c1 /tools/lib/python
parentd3e73a0808ddfb91ac36cd548643cbbeb00ad4db (diff)
downloadlinux-3788e32516530dee66cf9186f846480a16799b05.tar.xz
selftests/sched_ext: Fix build error in dequeue selftest
Building the dequeue selftest with newer compilers (e.g., gcc 16) triggers the following error: dequeue.c:28:22: error: variable 'sum' set but not used The 'volatile' qualifier prevents the writes from being optimized away, but does not silence the unused variable 'sum' is indeed only written and never read. Consume 'sum' via an empty asm() with a register input constraint. This forces the compiler to keep the accumulated value (preserving the CPU stress loop) and avoiding the build error. Fixes: 658ad2259b3e ("selftests/sched_ext: Add test to validate ops.dequeue() semantics") Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions