From: Rasmus Villemoes Date: Fri, 2 Nov 2018 11:04:47 +0000 (+0100) Subject: drivers/char/random.c: make primary_crng static X-Git-Tag: v4.19.249~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83bd6dae1035008709a80c861e857bbbfc5507e6;p=thirdparty%2Fkernel%2Fstable.git drivers/char/random.c: make primary_crng static commit 764ed189c82090c1d85f0e30636156736d8f09a8 upstream. 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 Signed-off-by: Theodore Ts'o Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/random.c b/drivers/char/random.c index b5a6437f5026c..7712b44740fcc 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), };