diff options
author | David Rientjes <[email protected]> | 2012-12-18 00:03:23 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-18 09:49:03 -0800 |
commit | c36e0501ee91d7616a188efbf9714b1fce150032 (patch) | |
tree | 7f5a03ce5f6a969703a6cf3839239fb44f1f9544 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | ea77d73c464c1fae250486c3ab0908500ba96558 (diff) |
x86, paravirt: fix build error when thp is disabled
With CONFIG_PARAVIRT=y and CONFIG_TRANSPARENT_HUGEPAGE=n, the build breaks
because set_pmd_at() is undeclared:
mm/memory.c: In function 'do_pmd_numa_page':
mm/memory.c:3520: error: implicit declaration of function 'set_pmd_at'
mm/mprotect.c: In function 'change_pmd_protnuma':
mm/mprotect.c:120: error: implicit declaration of function 'set_pmd_at'
This is because paravirt defines set_pmd_at() only when
CONFIG_TRANSPARENT_HUGEPAGE=y and such a restriction is unneeded. The
fix is to define it for all CONFIG_PARAVIRT configurations.
Signed-off-by: David Rientjes <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions