diff options
author | Rabin Vincent <rabin@rab.in> | 2015-05-14 11:00:58 -0400 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2015-09-04 18:33:25 -0400 |
commit | 3a79a075375cebb672ddaea7896378afa0203e87 (patch) | |
tree | 1fd8e7b74a32fcb659a045d7572b3f967643bef0 | |
parent | 835e4177284e1574033dea47d4bb8e55c21b6345 (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>
-rw-r--r-- | arch/cris/include/arch-v10/arch/elf.h | 5 | ||||
-rw-r--r-- | arch/cris/include/arch-v32/arch/elf.h | 5 | ||||
-rw-r--r-- | arch/cris/include/asm/elf.h | 5 |
3 files changed, 7 insertions, 8 deletions
diff --git a/arch/cris/include/arch-v10/arch/elf.h b/arch/cris/include/arch-v10/arch/elf.h index 1eb638aeddb4..3ea65cef529d 100644 --- a/arch/cris/include/arch-v10/arch/elf.h +++ b/arch/cris/include/arch-v10/arch/elf.h | |||
@@ -1,10 +1,11 @@ | |||
1 | #ifndef __ASMCRIS_ARCH_ELF_H | 1 | #ifndef __ASMCRIS_ARCH_ELF_H |
2 | #define __ASMCRIS_ARCH_ELF_H | 2 | #define __ASMCRIS_ARCH_ELF_H |
3 | 3 | ||
4 | #include <arch/system.h> | ||
5 | |||
6 | #define ELF_MACH EF_CRIS_VARIANT_ANY_V0_V10 | 4 | #define ELF_MACH EF_CRIS_VARIANT_ANY_V0_V10 |
7 | 5 | ||
6 | /* Matches struct user_regs_struct */ | ||
7 | #define ELF_NGREG 35 | ||
8 | |||
8 | /* | 9 | /* |
9 | * This is used to ensure we don't load something for the wrong architecture. | 10 | * This is used to ensure we don't load something for the wrong architecture. |
10 | */ | 11 | */ |
diff --git a/arch/cris/include/arch-v32/arch/elf.h b/arch/cris/include/arch-v32/arch/elf.h index c46d58291166..f09fe49005c0 100644 --- a/arch/cris/include/arch-v32/arch/elf.h +++ b/arch/cris/include/arch-v32/arch/elf.h | |||
@@ -1,10 +1,11 @@ | |||
1 | #ifndef _ASM_CRIS_ELF_H | 1 | #ifndef _ASM_CRIS_ELF_H |
2 | #define _ASM_CRIS_ELF_H | 2 | #define _ASM_CRIS_ELF_H |
3 | 3 | ||
4 | #include <arch/system.h> | ||
5 | |||
6 | #define ELF_CORE_EFLAGS EF_CRIS_VARIANT_V32 | 4 | #define ELF_CORE_EFLAGS EF_CRIS_VARIANT_V32 |
7 | 5 | ||
6 | /* Matches struct user_regs_struct */ | ||
7 | #define ELF_NGREG 32 | ||
8 | |||
8 | /* | 9 | /* |
9 | * This is used to ensure we don't load something for the wrong architecture. | 10 | * This is used to ensure we don't load something for the wrong architecture. |
10 | */ | 11 | */ |
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 @@ | |||
5 | * ELF register definitions.. | 5 | * ELF register definitions.. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <asm/user.h> | 8 | #include <arch/elf.h> |
9 | 9 | ||
10 | #define R_CRIS_NONE 0 | 10 | #define R_CRIS_NONE 0 |
11 | #define R_CRIS_8 1 | 11 | #define R_CRIS_8 1 |
@@ -32,7 +32,6 @@ typedef unsigned long elf_greg_t; | |||
32 | 32 | ||
33 | /* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is | 33 | /* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is |
34 | thus exposed to user-space. */ | 34 | thus exposed to user-space. */ |
35 | #define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t)) | ||
36 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | 35 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; |
37 | 36 | ||
38 | /* A placeholder; CRIS does not have any fp regs. */ | 37 | /* A placeholder; CRIS does not have any fp regs. */ |
@@ -45,8 +44,6 @@ typedef unsigned long elf_fpregset_t; | |||
45 | #define ELF_DATA ELFDATA2LSB | 44 | #define ELF_DATA ELFDATA2LSB |
46 | #define ELF_ARCH EM_CRIS | 45 | #define ELF_ARCH EM_CRIS |
47 | 46 | ||
48 | #include <arch/elf.h> | ||
49 | |||
50 | /* The master for these definitions is {binutils}/include/elf/cris.h: */ | 47 | /* The master for these definitions is {binutils}/include/elf/cris.h: */ |
51 | /* User symbols in this file have a leading underscore. */ | 48 | /* User symbols in this file have a leading underscore. */ |
52 | #define EF_CRIS_UNDERSCORE 0x00000001 | 49 | #define EF_CRIS_UNDERSCORE 0x00000001 |