drivers/char/random.c: make primary_crng static
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 2 Nov 2018 11:04:47 +0000 (12:04 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 17 Apr 2019 14:30:21 +0000 (10:30 -0400)
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>
drivers/char/random.c

index 84212ed5d091e9db49470c0b36afce839752ac36..47ac7cd20fb193647591e62f2a61994f7d385463 100644 (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),
 };