mm/page_ext: move page_ext_operations definition under CONFIG_PAGE_EXTENSION
authorKemeng Shi <shikemeng@huaweicloud.com>
Mon, 17 Jul 2023 11:32:27 +0000 (19:32 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:31 +0000 (13:37 -0700)
commit67311a36e5e1e56dfa7264c93db759b18217e114
tree1c7712e1537586964d1b32dea0bb731e2eb41512
parentc6493f4bd789eafc918a5e210e80256e2284a7c0
mm/page_ext: move page_ext_operations definition under CONFIG_PAGE_EXTENSION

page_ext_operations should only be defined when CONFIG_PAGE_EXTENSION is
enabled.

Besides, this may detect missing reliance on CONFIG_PAGE_EXTENSION from
future Page Extension clients at compile time.

Link: https://lkml.kernel.org/r/20230717113227.1897173-4-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/page_ext.h