[PATCH] powerpc: cputhreads: Add missing include file
linux at roeck-us.net
Mon Aug 15 06:53:17 AEST 2016
Powerpc builds may fail with the following build error.
In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0,
./arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr':
implicit declaration of function 'cpu_has_feature'
The problem can be triggered by configuring ppc64e_defconfig and selecting
CONFIG_TICK_CPU_ACCOUNTING instead of CONFIG_VIRT_CPU_ACCOUNTING_NATIVE.
Fixes: b92a226e5284 ("powerpc: Move cpu_has_feature() to a separate file")
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
This is the second attempt to fix this problem. The first attempt was
with commit 546c4402c574 ("powerpc/vdso: Add missing include file"). This
was not complete because it added the include file to an affected source
file, not to the file where cpu_has_feature() was used.
Build tested all default configurations to ensure that this patch does not
introduce a regression.
arch/powerpc/include/asm/cputhreads.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/asm/cputhreads.h b/arch/powerpc/include/asm/cputhreads.h
index 666bef4ebfae..9377bdf42eb8 100644
@@ -3,6 +3,7 @@
* Mapping of threads to cores
More information about the Linuxppc-dev