Skip to content

Commit 870388d

Browse files
Kefeng Wangakpm00
authored andcommitted
mm: memory_failure: move memory_failure_attr_group under MEMORY_FAILURE
The memory_failure_attr_group is only called if MEMORY_FAILURE enabled, move it under this configuration. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kefeng Wang <[email protected]> Acked-by: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent eb83f65 commit 870388d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/linux/mm.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3586,6 +3586,10 @@ extern void shake_page(struct page *p);
35863586
extern atomic_long_t num_poisoned_pages __read_mostly;
35873587
extern int soft_offline_page(unsigned long pfn, int flags);
35883588
#ifdef CONFIG_MEMORY_FAILURE
3589+
/*
3590+
* Sysfs entries for memory failure handling statistics.
3591+
*/
3592+
extern const struct attribute_group memory_failure_attr_group;
35893593
extern void memory_failure_queue(unsigned long pfn, int flags);
35903594
extern int __get_huge_page_for_hwpoison(unsigned long pfn, int flags,
35913595
bool *migratable_cleared);
@@ -3678,11 +3682,6 @@ enum mf_action_page_type {
36783682
MF_MSG_UNKNOWN,
36793683
};
36803684

3681-
/*
3682-
* Sysfs entries for memory failure handling statistics.
3683-
*/
3684-
extern const struct attribute_group memory_failure_attr_group;
3685-
36863685
#if defined(CONFIG_TRANSPARENT_HUGEPAGE) || defined(CONFIG_HUGETLBFS)
36873686
extern void clear_huge_page(struct page *page,
36883687
unsigned long addr_hint,

0 commit comments

Comments
 (0)