]> 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)
commitf80b6d4b81123d14e8b8271a5c2fbcb0d170aa90
tree9c75cfc2b213df6523c41f01149f91160dcf9ad4
parent3dd34e5d90b0d44608bb2a6d6e6686cc2dc32f71
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