summaryrefslogtreecommitdiff
path: root/arch/cris/include/asm
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2015-05-14 17:00:58 +0200
committerJesper Nilsson <jespern@axis.com>2015-09-05 00:33:25 +0200
commit3a79a075375cebb672ddaea7896378afa0203e87 (patch)
tree1fd8e7b74a32fcb659a045d7572b3f967643bef0 /arch/cris/include/asm
parent835e4177284e1574033dea47d4bb8e55c21b6345 (diff)
CRIS: don't make asm/elf.h depend on asm/user.h
We're going to export asm/elf.h; remove its dependencies on the non-exported asm/user.h and the unused asm/system.h include. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/asm')
-rw-r--r--arch/cris/include/asm/elf.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/cris/include/asm/elf.h b/arch/cris/include/asm/elf.h
index c2a394ff55ff..986adbabb581 100644
--- a/arch/cris/include/asm/elf.h
+++ b/arch/cris/include/asm/elf.h
@@ -5,7 +5,7 @@
* ELF register definitions..
*/
-#include <asm/user.h>
+#include <arch/elf.h>
#define R_CRIS_NONE 0
#define R_CRIS_8 1
@@ -32,7 +32,6 @@ typedef unsigned long elf_greg_t;
/* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is
thus exposed to user-space. */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
/* A placeholder; CRIS does not have any fp regs. */
@@ -45,8 +44,6 @@ typedef unsigned long elf_fpregset_t;
#define ELF_DATA ELFDATA2LSB
#define ELF_ARCH EM_CRIS
-#include <arch/elf.h>
-
/* The master for these definitions is {binutils}/include/elf/cris.h: */
/* User symbols in this file have a leading underscore. */
#define EF_CRIS_UNDERSCORE 0x00000001