Skip to content

Commit d18c136

Browse files
ubizjakzx2c4
authored andcommitted
prandom: Include <linux/percpu.h> in <linux/prandom.h>
<linux/percpu.h> include was removed from <linux/prandom.h> in d9f29de ("prandom: Remove unused include") because this inclusion broke arm64 due to a circular dependency on include files. __percpu tag is defined in include/linux/compiler_types.h, so there is currently no direct need for the inclusion of <linux/percpu.h>. However, in [1] we would like to repurpose __percpu tag as a named address space qualifier, where __percpu macro uses defines from <linux/percpu.h>. The circular dependency was removed in ddd8e37ebaa1 ("random: Do not include <linux/prandom.h> in <linux/random.h>") and it cleared the path for the inclusion of <linux/percpu.h> in <linux/prandom.h>. This patch is basically a revert of d9f29de ("prandom: Remove unused include"). [1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubizjak@gmail.com/ Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Theodore Ts'o <tytso@mit.edu> Cc: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 5b3fdc9 commit d18c136

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/prandom.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/types.h>
1212
#include <linux/once.h>
13+
#include <linux/percpu.h>
1314
#include <linux/random.h>
1415

1516
struct rnd_state {

0 commit comments

Comments
 (0)