diff options
| author | Samuele Mariotti <smariotti@disroot.org> | 2026-10-12 13:59:28 +0200 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-10-12 07:52:22 -1000 |
| commit | d1350c523f481769182604d758ecfcdf3597b402 (patch) | |
| tree | 9cad86f146749a90fd4b53acc015831e9925bb9b /tools/perf/scripts/python/flamegraph.py | |
| parent | 8b3eaeb72e8a2eb8250e67b45e98e02ffcb5bd63 (diff) | |
selftests/sched_ext: Fix build error in dequeue_remote selftest
Building the dequeue_remote selftest with newer compilers (e.g., gcc 16)
triggers the following error:
dequeue_remote.c:39:32: error: variable ‘sum’ set but not used
The 'volatile' qualifier prevents the writes from being optimized away,
but does not silence the warning, since 'sum' is indeed only written and
never read.
Consume 'sum' via an empty asm() with a register input constraint, as
already done for the dequeue selftest in commit 3788e3251653
("selftests/sched_ext: Fix build error in dequeue selftest"). This forces
the compiler to keep the accumulated value (preserving the CPU stress loop)
and avoids the build error.
Signed-off-by: Samuele Mariotti <smariotti@disroot.org>
Reviewed-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
