]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: make symbol 'pcpu_free_slot' static
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 14 May 2021 06:39:52 +0000 (06:39 +0000)
committerDennis Zhou <dennis@kernel.org>
Fri, 14 May 2021 20:57:54 +0000 (20:57 +0000)
commit6080dcb61f8a9a359dbafc36d65a3871c9755735
treea4147a3e3626e287c1c64ab11d2898fcb55269e4
parent3849fc8f1d702c5e58116a421bf6bc1a0642e45f
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>
mm/percpu.c