mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] openrisc: Fix build failure
@ 2014-08-10 16:05 Guenter Roeck
  0 siblings, 0 replies; only message in thread
From: Guenter Roeck @ 2014-08-10 16:05 UTC (permalink / raw)
  To: Jonas Bonn; +Cc: linux, linux-kernel, Guenter Roeck, Eric Paris

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@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-10 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-10 16:05 [PATCH] openrisc: Fix build failure Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®