]> git.baikalelectronics.ru Git - kernel.git/commit
shmem: include header file to declare swap_info
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 2 Sep 2021 21:54:15 +0000 (14:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:11 +0000 (09:58 -0700)
commit27b4070ec4936edef3642a8d9ea61cda4ef8020a
tree9c75cfc2b213df6523c41f01149f91160dcf9ad4
parent45c5c81d2758e01f68316e79809d6c2332e3a947
shmem: include header file to declare swap_info

It's bad to extern swap_info[] in .c.  Include corresponding header file
instead.

Link: https://lkml.kernel.org/r/20210812120350.49801-5-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c