diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-05-14 08:39:52 +0200 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2021-05-14 22:57:54 +0200 |
commit | 8d55ba5df39a2eb213da63911c1a75001e0717fc (patch) | |
tree | a4147a3e3626e287c1c64ab11d2898fcb55269e4 /mm/percpu.c | |
parent | percpu: implement partial chunk depopulation (diff) | |
download | linux-8d55ba5df39a2eb213da63911c1a75001e0717fc.tar.xz linux-8d55ba5df39a2eb213da63911c1a75001e0717fc.zip |
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 79eebc80860d..3135e56ce8d4 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -135,7 +135,7 @@ static int pcpu_unit_size __ro_after_init; static int pcpu_nr_units __ro_after_init; static int pcpu_atom_size __ro_after_init; int pcpu_nr_slots __ro_after_init; -int pcpu_free_slot __ro_after_init; +static int pcpu_free_slot __ro_after_init; int pcpu_sidelined_slot __ro_after_init; int pcpu_to_depopulate_slot __ro_after_init; static size_t pcpu_chunk_struct_size __ro_after_init; |