Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

elf-em.h: move EM_MICROBLAZE to the common header

The linux/audit.h header uses EM_MICROBLAZE in order to define
AUDIT_ARCH_MICROBLAZE, but it's only available in the microblaze
asm headers. Move it to the common elf-em.h header so that the
define can be used on non-microblaze systems. Otherwise we get
build errors that EM_MICROBLAZE isn't defined when we try to use
the AUDIT_ARCH_MICROBLAZE symbol.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Mike Frysinger and committed by
Michal Simek
b1413279 b8889c4f

+3 -1
+2 -1
arch/microblaze/include/uapi/asm/elf.h
··· 11 11 #ifndef _UAPI_ASM_MICROBLAZE_ELF_H 12 12 #define _UAPI_ASM_MICROBLAZE_ELF_H 13 13 14 + #include <linux/elf-em.h> 15 + 14 16 /* 15 17 * Note there is no "official" ELF designation for Microblaze. 16 18 * I've snaffled the value from the microblaze binutils source code 17 19 * /binutils/microblaze/include/elf/microblaze.h 18 20 */ 19 - #define EM_MICROBLAZE 189 20 21 #define EM_MICROBLAZE_OLD 0xbaab 21 22 #define ELF_ARCH EM_MICROBLAZE 22 23
+1
include/uapi/linux/elf-em.h
··· 39 39 #define EM_TI_C6000 140 /* TI C6X DSPs */ 40 40 #define EM_AARCH64 183 /* ARM 64 bit */ 41 41 #define EM_TILEPRO 188 /* Tilera TILEPro */ 42 + #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ 42 43 #define EM_TILEGX 191 /* Tilera TILE-Gx */ 43 44 #define EM_FRV 0x5441 /* Fujitsu FR-V */ 44 45 #define EM_AVR32 0x18ad /* Atmel AVR32 */