mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
committed by
Andrew Morton
parent
c6493f4bd7
commit
67311a36e5
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
struct pglist_data;
|
struct pglist_data;
|
||||||
|
|
||||||
|
#ifdef CONFIG_PAGE_EXTENSION
|
||||||
/**
|
/**
|
||||||
* struct page_ext_operations - per page_ext client operations
|
* struct page_ext_operations - per page_ext client operations
|
||||||
* @offset: Offset to the client's data within page_ext. Offset is returned to
|
* @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;
|
bool need_shared_flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_PAGE_EXTENSION
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The page_ext_flags users must set need_shared_flags to true.
|
* The page_ext_flags users must set need_shared_flags to true.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user