]> git.ipfire.org Git - thirdparty/linux.git/commit
mm: vmscan: mark kswapd_run() and kswapd_stop() __meminit
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 6 Jun 2023 12:18:13 +0000 (20:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:00 +0000 (16:19 -0700)
commite5797dc011182f8b25420bc977f37cd92fc6e755
tree30c8abe080afc5222a7dc1c72bc8460f665314d1
parente52ee4cc8fa87a75ab0cfc7bf51c0715a880a08e
mm: vmscan: mark kswapd_run() and kswapd_stop() __meminit

Add __meminit to kswapd_run() and kswapd_stop() to ensure they're default
to __init when memory hotplug is not enabled.

Link: https://lkml.kernel.org/r/20230606121813.242163-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Yu Zhao <yuzhao@google.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/vmscan.c