Skip to content

Commit 9289c5e

Browse files
surenbaghdasaryantorvalds
authored andcommitted
psi: make psi_enable static
psi_enable is not used outside of psi.c, make it static. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Suren Baghdasaryan <[email protected]> Suggested-by: Andrew Morton <[email protected]> Acked-by: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 33b2d63 commit 9289c5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sched/psi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ static int psi_bug __read_mostly;
140140
DEFINE_STATIC_KEY_FALSE(psi_disabled);
141141

142142
#ifdef CONFIG_PSI_DEFAULT_DISABLED
143-
bool psi_enable;
143+
static bool psi_enable;
144144
#else
145-
bool psi_enable = true;
145+
static bool psi_enable = true;
146146
#endif
147147
static int __init setup_psi(char *str)
148148
{

0 commit comments

Comments
 (0)