linux-next: build failure after merge of the random tree
Subsystems (3)
Hi all,
After merging the random tree, today's linux-next build (x86_64 allmodconfig) failed like this:
arch/x86/mm/cpu_entry_area.c: In function 'init_cea_offsets':arch/x86/mm/cpu_entry_area.c:38:23: error: implicit declaration of function 'prandom_u32_max'; did you mean 'prandom_u32_state'? [-Werror=implicit-function-declaration]
38 | cea = prandom_u32_max(max_cea);
| ^~~~~~~~~~~~~~~
| prandom_u32_statecc1: all warnings being treated as errors
Caused by commit
921b09c09fe7 ("prandom: remove prandom_u32_max()")
interacting with commit
1248fb6a8201 ("x86/mm: Randomize per-cpu entry area")
from the tip tree.
I have applied the following fix up patch for today.
From: Stephen Rothwell <[email protected]>
Date: Mon, 24 Oct 2022 12:37:28 +1100
Subject: [PATCH] fix up for "prandom: remove prandom_u32_max()"
--- arch/x86/mm/cpu_entry_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/cpu_entry_area.c +1 -1
@@ -35,7 +35,7 @@ static __init void init_cea_offsets(void)unsigned int cea; again: - cea =prandom_u32_max (max_cea); + cea =get_random_u32_below (max_cea);/* Make sure that no previous CPU shares the offset: */ for_each_possible_cpu (j) {
Signature · 5 lines
2.34.1 -- Cheers, Stephen Rothwell
I'll remove the removal commit for now and will plan on handling that separately at the end of the 6.2 merge window.
Jason
Hi Jason,
Quoted 3 lines · On Mon, 24 Oct 2022 06:28:53 +0200 "Jason A. Donenfeld" <[email protected]> wrote:
I'll remove the removal commit for now and will plan on handling that separately at the end of the 6.2 merge window.
OK, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell