1) Improve getrandom and /dev/random's support for those arm64
architecture variants that have RNG instructions.
2) Use batched output form CRNG instead of CPU's RNG instructions for
3) Miscellaneous bug fixes.
random: avoid warnings for !CONFIG_NUMA builds
As crng_initialize_secondary() is only called by do_numa_crng_init(),
and the latter is under ifdeffery for CONFIG_NUMA, when CONFIG_NUMA is
not selected the compiler will warn that the former is unused:
| drivers/char/random.c:820:13: warning: 'crng_initialize_secondary' defined but not used [-Wunused-function]
| 820 | static void crng_initialize_secondary(struct crng_state *crng)
| | ^~~~~~~~~~~~~~~~~~~~~~~~~
Stephen reports that this happens for x86_64 noallconfig builds.
We could move crng_initialize_secondary() and crng_init_try_arch() under
the CONFIG_NUMA ifdeffery, but this has the unfortunate property of
separating them from crng_initialize_primary() and
crng_init_try_arch_early() respectively. Instead, let's mark
crng_initialize_secondary() as __maybe_unused.
Fixes: 5cbe0f13b51a ("random: split primary/secondary crng init paths")
Reported-by: Stephen Rothwell <firstname.lastname@example.org>
Signed-off-by: Mark Rutland <email@example.com>
Cc: Theodore Ts'o <firstname.lastname@example.org>
Signed-off-by: Theodore Ts'o <email@example.com>
1 file changed