Skip to content

Commit 8b885f5

Browse files
JasonYanHwtorvalds
authored andcommitted
mm/page_alloc: make pcpu_drain_mutex and pcpu_drain static
Fix the following sparse warning: mm/page_alloc.c:106:1: warning: symbol 'pcpu_drain_mutex' was not declared. Should it be static? mm/page_alloc.c:107:1: warning: symbol '__pcpu_scope_pcpu_drain' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent e6a0a7a commit 8b885f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/page_alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ struct pcpu_drain {
103103
struct zone *zone;
104104
struct work_struct work;
105105
};
106-
DEFINE_MUTEX(pcpu_drain_mutex);
107-
DEFINE_PER_CPU(struct pcpu_drain, pcpu_drain);
106+
static DEFINE_MUTEX(pcpu_drain_mutex);
107+
static DEFINE_PER_CPU(struct pcpu_drain, pcpu_drain);
108108

109109
#ifdef CONFIG_GCC_PLUGIN_LATENT_ENTROPY
110110
volatile unsigned long latent_entropy __latent_entropy;

0 commit comments

Comments
 (0)