Skip to content

Commit

Permalink
drivers/char/random.c: make primary_crng static
Browse files Browse the repository at this point in the history
Since the definition of struct crng_state is private to random.c, and
primary_crng is neither declared or used elsewhere, there's no reason
for that symbol to have external linkage.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Rasmus Villemoes authored and Theodore Ts'o committed Apr 17, 2019
1 parent 3bd0b5b commit 764ed18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ struct crng_state {
spinlock_t lock;
};

struct crng_state primary_crng = {
static struct crng_state primary_crng = {
.lock = __SPIN_LOCK_UNLOCKED(primary_crng.lock),
};

Expand Down

0 comments on commit 764ed18

Please sign in to comment.