diff mbox

powerpc/lib: Fix randconfig build failure in sstep.c

Message ID 1479430638-4186-1-git-send-email-mpe@ellerman.id.au (mailing list archive)
State Accepted
Headers show

Commit Message

Michael Ellerman Nov. 18, 2016, 12:57 a.m. UTC
Under some configs we need to explicitly include cpu_has_feature.h,
otherwise we fail with:

  arch/powerpc/lib/sstep.c:1992:7: error: implicit declaration of function 'cpu_has_feature'

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/lib/sstep.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Ellerman Nov. 22, 2016, 12:34 a.m. UTC | #1
On Fri, 2016-11-18 at 00:57:18 UTC, Michael Ellerman wrote:
> Under some configs we need to explicitly include cpu_has_feature.h,
> otherwise we fail with:
> 
>   arch/powerpc/lib/sstep.c:1992:7: error: implicit declaration of function 'cpu_has_feature'
> 
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/5e9d0e3d9ea6f771fa9fc9dbb65b54

cheers
diff mbox

Patch

diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c
index b64287c6793f..9c78a9c102c3 100644
--- a/arch/powerpc/lib/sstep.c
+++ b/arch/powerpc/lib/sstep.c
@@ -15,6 +15,7 @@ 
 #include <asm/sstep.h>
 #include <asm/processor.h>
 #include <asm/uaccess.h>
+#include <asm/cpu_has_feature.h>
 #include <asm/cputable.h>
 
 extern char system_call_common[];