diff options
| author | 2025-06-10 11:27:08 +0200 | |
|---|---|---|
| committer | 2025-10-30 18:35:26 +0100 | |
| commit | 5d49f1a5bd358d24e5f88b23b46da833de1dbec8 (patch) | |
| tree | c2f98ef6f7233a3ec9ebd50e1593a7edb0b4a222 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
| parent | prandom: remove next_pseudo_random32 (diff) | |
| download | linux-rng-5d49f1a5bd358d24e5f88b23b46da833de1dbec8.tar.xz linux-rng-5d49f1a5bd358d24e5f88b23b46da833de1dbec8.zip | |
random: use offstack cpumask when necessary
The entropy generation function keeps a local cpu mask on the stack,
which can trigger warnings in configurations with a large number of
CPUs:
drivers/char/random.c:1292:20: error: stack frame size (1288)
exceeds limit (1280) in 'try_to_generate_entropy' [-Werror,-Wframe-larger-than]
Use the cpumask interface to dynamically allocate it in those
configurations.
Fixes: 1c21fe00eda7 ("random: spread out jitter callback to different CPUs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions
