diff options
author | Arnd Bergmann <[email protected]> | 2016-08-10 16:27:44 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-08-10 16:40:56 -0700 |
commit | 3b33719c9b741066f7d2bc6036409752f8e0478d (patch) | |
tree | 292ce0ff8ea8a58f40b1ba120597fe22a32b719f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a545de5ce2ef3abc4db0b9331840acf59c8f9efa (diff) |
thp: move shmem_huge_enabled() outside of SYSFS ifdef
The newly introduced shmem_huge_enabled() function has two definitions,
but neither of them is visible if CONFIG_SYSFS is disabled, leading to a
build error:
mm/khugepaged.o: In function `khugepaged':
khugepaged.c:(.text.khugepaged+0x3ca): undefined reference to `shmem_huge_enabled'
This changes the #ifdef guards around the definition to match those that
are used in the header file.
Fixes: e496cf3d7821 ("thp: introduce CONFIG_TRANSPARENT_HUGE_PAGECACHE")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions