提交 5749fcc5 编写于 作者: M Miaohe Lin 提交者: Andrew Morton

mm/page_alloc: add __init annotations to init_mem_debugging_and_hardening()

It's only called by mm_init(). Add __init annotations to it.

Link: https://lkml.kernel.org/r/20220916072257.9639-6-linmiaohe@huawei.comSigned-off-by: NMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: NDavid Hildenbrand <david@redhat.com>
Reviewed-by: NAnshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: NOscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 709924bc
...@@ -3092,7 +3092,7 @@ extern int apply_to_existing_page_range(struct mm_struct *mm, ...@@ -3092,7 +3092,7 @@ extern int apply_to_existing_page_range(struct mm_struct *mm,
unsigned long address, unsigned long size, unsigned long address, unsigned long size,
pte_fn_t fn, void *data); pte_fn_t fn, void *data);
extern void init_mem_debugging_and_hardening(void); extern void __init init_mem_debugging_and_hardening(void);
#ifdef CONFIG_PAGE_POISONING #ifdef CONFIG_PAGE_POISONING
extern void __kernel_poison_pages(struct page *page, int numpages); extern void __kernel_poison_pages(struct page *page, int numpages);
extern void __kernel_unpoison_pages(struct page *page, int numpages); extern void __kernel_unpoison_pages(struct page *page, int numpages);
......
...@@ -903,7 +903,7 @@ static inline void clear_page_guard(struct zone *zone, struct page *page, ...@@ -903,7 +903,7 @@ static inline void clear_page_guard(struct zone *zone, struct page *page,
* order of appearance. So we need to first gather the full picture of what was * order of appearance. So we need to first gather the full picture of what was
* enabled, and then make decisions. * enabled, and then make decisions.
*/ */
void init_mem_debugging_and_hardening(void) void __init init_mem_debugging_and_hardening(void)
{ {
bool page_poisoning_requested = false; bool page_poisoning_requested = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册