Skip to content

Commit f4780e2

Browse files
ldv-altpcmoore
authored andcommitted
Move EM_HEXAGON to uapi/linux/elf-em.h
This should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_HEXAGON in order to define AUDIT_ARCH_HEXAGON which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by: Paul Moore <paul@paul-moore.com> Cc: Elvira Khabirova <lineprinter@altlinux.org> Cc: Eugene Syromyatnikov <esyr@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Richard Kuo <rkuo@codeaurora.org> Cc: linux-hexagon@vger.kernel.org Cc: linux-audit@redhat.com Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 122a43b commit f4780e2

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎arch/hexagon/include/asm/elf.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323

2424
#include <asm/ptrace.h>
2525
#include <asm/user.h>
26-
27-
/*
28-
* This should really be in linux/elf-em.h.
29-
*/
30-
#define EM_HEXAGON 164 /* QUALCOMM Hexagon */
26+
#include <linux/elf-em.h>
3127

3228
struct elf32_hdr;
3329

‎include/uapi/linux/elf-em.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#define EM_BLACKFIN 106 /* ADI Blackfin Processor */
4040
#define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */
4141
#define EM_TI_C6000 140 /* TI C6X DSPs */
42+
#define EM_HEXAGON 164 /* QUALCOMM Hexagon */
4243
#define EM_AARCH64 183 /* ARM 64 bit */
4344
#define EM_TILEPRO 188 /* Tilera TILEPro */
4445
#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */

0 commit comments

Comments
 (0)