Skip to content

Commit 764ed18

Browse files
Villemoestytso
authored andcommitted
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 <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 3bd0b5b commit 764ed18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ struct crng_state {
415415
spinlock_t lock;
416416
};
417417

418-
struct crng_state primary_crng = {
418+
static struct crng_state primary_crng = {
419419
.lock = __SPIN_LOCK_UNLOCKED(primary_crng.lock),
420420
};
421421

0 commit comments

Comments
 (0)