diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-07-03 10:25:52 +0200 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2019-07-04 17:05:52 +0200 |
commit | 163fa23435cc9c705a71001d4aa15f3f945554a1 (patch) | |
tree | 768515474aec400ac567909c10ffa9973a28fae9 /arch/ia64/mm/discontig.c | |
parent | Linux 5.2-rc7 (diff) | |
download | linux-163fa23435cc9c705a71001d4aa15f3f945554a1.tar.xz linux-163fa23435cc9c705a71001d4aa15f3f945554a1.zip |
percpu: Make pcpu_setup_first_chunk() void function
pcpu_setup_first_chunk() will panic or BUG_ON if the are some
error and doesn't return any error, hence it can be defined to
return void.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
[Dennis: fixed kbuild warning for pcpu_page_first_chunk()]
Diffstat (limited to 'arch/ia64/mm/discontig.c')
-rw-r--r-- | arch/ia64/mm/discontig.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 05490dd073e6..004dee231874 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm/discontig.c @@ -245,10 +245,7 @@ void __init setup_per_cpu_areas(void) gi->cpu_map = &cpu_map[unit]; } - rc = pcpu_setup_first_chunk(ai, base); - if (rc) - panic("failed to setup percpu area (err=%d)", rc); - + pcpu_setup_first_chunk(ai, base); pcpu_free_alloc_info(ai); } #endif |