mm/hwpoison: move definitions of num_poisoned_pages_* to memory-failure.c
authorNaoya Horiguchi <naoya.horiguchi@nec.com>
Mon, 24 Oct 2022 06:20:10 +0000 (15:20 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:22 +0000 (17:37 -0800)
commitd027122d8363e58cd8bc2fa6a16917f7f69b85bb
tree9f353b5c69f21382737b7a4c840ef48834b4f717
parente591ef7d96d6ea249916f351dc26a636e565c635
mm/hwpoison: move definitions of num_poisoned_pages_* to memory-failure.c

These interfaces will be used by drivers/base/memory.c by later patch, so
as a preparatory work move them to more common header file visible to the
file.

Link: https://lkml.kernel.org/r/20221024062012.1520887-3-naoya.horiguchi@linux.dev
Signed-off-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jane Chu <jane.chu@oracle.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/parisc/kernel/pdt.c
include/linux/mm.h
include/linux/swapops.h
mm/memory-failure.c