summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2018-11-02 14:04:47 +0300
committerTheodore Ts'o <tytso@mit.edu>2019-04-17 17:30:21 +0300
commit764ed189c82090c1d85f0e30636156736d8f09a8 (patch)
tree7df0c430e7f013409a7f4e83e1caf41413fdb232 /drivers/char
parent3bd0b5bf7dc3ea02070fcbcd682ecf628269e8ef (diff)
downloadlinux-764ed189c82090c1d85f0e30636156736d8f09a8.tar.xz
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 84212ed5d091..47ac7cd20fb1 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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),
};