Skip to content

Commit 8d55ba5

Browse files
Wei Yongjundennisszhou
authored andcommitted
percpu: make symbol 'pcpu_free_slot' static
The sparse tool complains as follows: mm/percpu.c:138:5: warning: symbol 'pcpu_free_slot' was not declared. Should it be static? This symbol is not used outside of percpu.c, so marks it static. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
1 parent f183324 commit 8d55ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/percpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int pcpu_unit_size __ro_after_init;
135135
static int pcpu_nr_units __ro_after_init;
136136
static int pcpu_atom_size __ro_after_init;
137137
int pcpu_nr_slots __ro_after_init;
138-
int pcpu_free_slot __ro_after_init;
138+
static int pcpu_free_slot __ro_after_init;
139139
int pcpu_sidelined_slot __ro_after_init;
140140
int pcpu_to_depopulate_slot __ro_after_init;
141141
static size_t pcpu_chunk_struct_size __ro_after_init;

0 commit comments

Comments
 (0)