diff options
| author | Jérémy Lefaure <[email protected]> | 2016-11-30 23:54:02 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-12-01 00:32:52 +0000 |
| commit | e1465d125d2189e667029b9fa8a6f455180fbcf2 (patch) | |
| tree | 84556b0ca42c9ec61792040f5f31ec4b9954b968 /lib/debugobjects.c | |
| parent | Merge tag 'arc-4.9-final' of git://git.kernel.org/pub/scm/linux/kernel/git/vg... (diff) | |
| download | kernel-e1465d125d2189e667029b9fa8a6f455180fbcf2.tar.gz kernel-e1465d125d2189e667029b9fa8a6f455180fbcf2.zip | |
mm, thp: propagation of conditional compilation in khugepaged.c
Commit b46e756f5e47 ("thp: extract khugepaged from mm/huge_memory.c")
moved code from huge_memory.c to khugepaged.c. Some of this code should
be compiled only when CONFIG_SYSFS is enabled but the condition around
this code was not moved into khugepaged.c.
The result is a compilation error when CONFIG_SYSFS is disabled:
mm/built-in.o: In function `khugepaged_defrag_store': khugepaged.c:(.text+0x2d095): undefined reference to `single_hugepage_flag_store'
mm/built-in.o: In function `khugepaged_defrag_show': khugepaged.c:(.text+0x2d0ab): undefined reference to `single_hugepage_flag_show'
This commit adds the #ifdef CONFIG_SYSFS around the code related to
sysfs.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jérémy Lefaure <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Hillf Danton <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
