diff options
author | Kemeng Shi <shikemeng@huaweicloud.com> | 2023-07-17 19:32:27 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-21 13:37:31 -0700 |
commit | 67311a36e5e1e56dfa7264c93db759b18217e114 (patch) | |
tree | 1c7712e1537586964d1b32dea0bb731e2eb41512 /include/linux/page_ext.h | |
parent | c6493f4bd789eafc918a5e210e80256e2284a7c0 (diff) | |
download | linux-67311a36e5e1e56dfa7264c93db759b18217e114.tar.gz linux-67311a36e5e1e56dfa7264c93db759b18217e114.tar.bz2 linux-67311a36e5e1e56dfa7264c93db759b18217e114.zip |
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>
Diffstat (limited to 'include/linux/page_ext.h')
-rw-r--r-- | include/linux/page_ext.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h index 658d8d39a10e..be98564191e6 100644 --- a/include/linux/page_ext.h +++ b/include/linux/page_ext.h @@ -8,6 +8,7 @@ struct pglist_data; +#ifdef CONFIG_PAGE_EXTENSION /** * struct page_ext_operations - per page_ext client operations * @offset: Offset to the client's data within page_ext. Offset is returned to @@ -29,8 +30,6 @@ struct page_ext_operations { bool need_shared_flags; }; -#ifdef CONFIG_PAGE_EXTENSION - /* * The page_ext_flags users must set need_shared_flags to true. */ |