[PATCH] openrisc: Fix build failure

From: Guenter Roeck
Date: Sun Aug 10 2014 - 12:05:32 EST


Openrisc build fails with

In file included from arch/openrisc/kernel/signal.c:31:0:
./arch/openrisc/include/asm/syscall.h: In function 'syscall_get_arch':
./arch/openrisc/include/asm/syscall.h:77:9: error:
'EM_OPENRISC' undeclared (first use in this function)
make[1]: *** [arch/openrisc/kernel/signal.o] Error 1

Introduced by commit "ARCH: AUDIT: implement syscall_get_arch for all arches".

Fix by adding a missing include file.

Cc: Eric Paris <eparis@xxxxxxxxxx>
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
Only applies to -next at this time.

arch/openrisc/kernel/signal.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/openrisc/kernel/signal.c b/arch/openrisc/kernel/signal.c
index 7d1b823..a887cd8 100644
--- a/arch/openrisc/kernel/signal.c
+++ b/arch/openrisc/kernel/signal.c
@@ -27,6 +27,7 @@
#include <linux/stddef.h>
#include <linux/tracehook.h>

+#include <asm/elf.h>
#include <asm/processor.h>
#include <asm/syscall.h>
#include <asm/ucontext.h>
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/