Skip to contentSkip to conversation

powerpc: vdso: Add missing include file

PATCH Applied Guenter Roeck 3 participants 4 messages Aug 6, 2016 – Aug 9, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: vdso: Add missing include file

Some powerpc builds fail with the following buld error.

In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0,
from arch/powerpc/kernel/vdso.c:28:
arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr':
arch/powerpc/include/asm/cputhreads.h:101:2: error:
implicit declaration of function 'cpu_has_feature'

Fixes b92a226e5284 ("powerpc: Move cpu_has_feature() to a separate file")
Cc Kevin Hao <[email protected]>

---
My apologies for the noise if already reported/fixed.

 arch/powerpc/kernel/vdso.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/kernel/vdso.c +1 -0
index 6767605ea8da..4111d30badfa 100644
@@ -22,6 +22,7 @@
 #include <linux/security.h>
 #include <linux/memblock.h>
 
+#include <asm/cpu_has_feature.h>
 #include <asm/pgtable.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
Signature · 1 line
2.5.0
#1 lore raw
Quoted 1 line · Guenter Roeck

Some powerpc builds fail with the following buld error.

Is that a randconfig?

All my builds are green.

Thanks for the patch anyway.

cheers

#3 lore raw
In reply to Guenter Roeck
Quoted 10 lines · Guenter Roeck

Some powerpc builds fail with the following buld error.

In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0,
from arch/powerpc/kernel/vdso.c:28:
arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr':
arch/powerpc/include/asm/cputhreads.h:101:2: error:
implicit declaration of function 'cpu_has_feature'

Fixes b92a226e5284 ("powerpc: Move cpu_has_feature() to a separate file")

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/546c4402c57497a6ffdf5373af

cheers