1
0
Fork 0

drivers/char/random.c: make primary_crng static

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>
hifive-unleashed-5.2
Rasmus Villemoes 2018-11-02 12:04:47 +01:00 committed by Theodore Ts'o
parent 3bd0b5bf7d
commit 764ed189c8
1 changed files with 1 additions and 1 deletions

View File

@ -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),
};