From mboxrd@z Thu Jan 1 00:00:00 1970 From: ldv@altlinux.org (Dmitry V. Levin) Date: Fri, 21 Dec 2018 04:19:03 +0300 Subject: [PATCH v6 04/27] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h In-Reply-To: <20181213172142.GD6024@altlinux.org> References: <20181213171833.GA5240@altlinux.org> <20181213172142.GD6024@altlinux.org> List-ID: Message-ID: <20181221011902.GA4591@altlinux.org> To: linux-snps-arc@lists.infradead.org Hi, On Thu, Dec 13, 2018@08:21:42PM +0300, Dmitry V. Levin wrote: > These should never have been defined in the arch tree to begin with, and > now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 > in order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are > 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: Vineet Gupta > Cc: Elvira Khabirova > Cc: Eugene Syromyatnikov > Cc: Oleg Nesterov > Cc: Andy Lutomirski > Cc: Alexey Brodkin > Cc: linux-snps-arc at lists.infradead.org > Signed-off-by: Dmitry V. Levin > --- Looks like the whole series is going to be pinged for quite some time yet, so would you mind taking this patch into your arc tree, please? Thanks. > Notes: > v6: unchanged > v5: added Cc > v2: added Acked-by > > arch/arc/include/asm/elf.h | 6 +----- > include/uapi/linux/elf-em.h | 2 ++ > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h > index aa2d6da9d187..2b80c184c9c8 100644 > --- a/arch/arc/include/asm/elf.h > +++ b/arch/arc/include/asm/elf.h > @@ -10,13 +10,9 @@ > #define __ASM_ARC_ELF_H > > #include > +#include > #include > > -/* These ELF defines belong to uapi but libc elf.h already defines them */ > -#define EM_ARCOMPACT 93 > - > -#define EM_ARCV2 195 /* ARCv2 Cores */ > - > #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \ > EM_ARCOMPACT : EM_ARCV2) > > diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h > index 93722e60204c..42b7546352a6 100644 > --- a/include/uapi/linux/elf-em.h > +++ b/include/uapi/linux/elf-em.h > @@ -34,6 +34,7 @@ > #define EM_M32R 88 /* Renesas M32R */ > #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ > #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ > +#define EM_ARCOMPACT 93 /* ARCompact processor */ > #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ > #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ > #define EM_TI_C6000 140 /* TI C6X DSPs */ > @@ -41,6 +42,7 @@ > #define EM_TILEPRO 188 /* Tilera TILEPro */ > #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ > #define EM_TILEGX 191 /* Tilera TILE-Gx */ > +#define EM_ARCV2 195 /* ARCv2 Cores */ > #define EM_RISCV 243 /* RISC-V */ > #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ > #define EM_FRV 0x5441 /* Fujitsu FR-V */ > -- > ldv -- ldv -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABCB1C43387 for ; Fri, 21 Dec 2018 01:19:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83DA3218E0 for ; Fri, 21 Dec 2018 01:19:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390717AbeLUBTJ (ORCPT ); Thu, 20 Dec 2018 20:19:09 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:59778 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387888AbeLUBTH (ORCPT ); Thu, 20 Dec 2018 20:19:07 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id A1DFE72CC53; Fri, 21 Dec 2018 04:19:03 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 928EA964E9F; Fri, 21 Dec 2018 04:19:03 +0300 (MSK) Date: Fri, 21 Dec 2018 04:19:03 +0300 From: "Dmitry V. Levin" To: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 04/27] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Message-ID: <20181221011902.GA4591@altlinux.org> References: <20181213171833.GA5240@altlinux.org> <20181213172142.GD6024@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20181213172142.GD6024@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Dec 13, 2018 at 08:21:42PM +0300, Dmitry V. Levin wrote: > These should never have been defined in the arch tree to begin with, and > now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 > in order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are > needed to implement syscall_get_arch() which in turn is required to > extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. >=20 > Acked-by: Vineet Gupta > Cc: Elvira Khabirova > Cc: Eugene Syromyatnikov > Cc: Oleg Nesterov > Cc: Andy Lutomirski > Cc: Alexey Brodkin > Cc: linux-snps-arc@lists.infradead.org > Signed-off-by: Dmitry V. Levin > --- Looks like the whole series is going to be pinged for quite some time yet, so would you mind taking this patch into your arc tree, please? Thanks. > Notes: > v6: unchanged > v5: added Cc > v2: added Acked-by >=20 > arch/arc/include/asm/elf.h | 6 +----- > include/uapi/linux/elf-em.h | 2 ++ > 2 files changed, 3 insertions(+), 5 deletions(-) >=20 > diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h > index aa2d6da9d187..2b80c184c9c8 100644 > --- a/arch/arc/include/asm/elf.h > +++ b/arch/arc/include/asm/elf.h > @@ -10,13 +10,9 @@ > #define __ASM_ARC_ELF_H > =20 > #include > +#include > #include > =20 > -/* These ELF defines belong to uapi but libc elf.h already defines them = */ > -#define EM_ARCOMPACT 93 > - > -#define EM_ARCV2 195 /* ARCv2 Cores */ > - > #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \ > EM_ARCOMPACT : EM_ARCV2) > =20 > diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h > index 93722e60204c..42b7546352a6 100644 > --- a/include/uapi/linux/elf-em.h > +++ b/include/uapi/linux/elf-em.h > @@ -34,6 +34,7 @@ > #define EM_M32R 88 /* Renesas M32R */ > #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ > #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ > +#define EM_ARCOMPACT 93 /* ARCompact processor */ > #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ > #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ > #define EM_TI_C6000 140 /* TI C6X DSPs */ > @@ -41,6 +42,7 @@ > #define EM_TILEPRO 188 /* Tilera TILEPro */ > #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ > #define EM_TILEGX 191 /* Tilera TILE-Gx */ > +#define EM_ARCV2 195 /* ARCv2 Cores */ > #define EM_RISCV 243 /* RISC-V */ > #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ > #define EM_FRV 0x5441 /* Fujitsu FR-V */ > --=20 > ldv --=20 ldv --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcHD+GAAoJEAVFT+BVnCUIXoEP/0MkGGzQjRQUakMDP05A7jqq bs5Kv7Svy6RBQ4OEgybHUIYEA9vRM6XixWV7X4pp4aXxr7Iz6FEpEYSQXFuvCydi lIDEv9QesxIfQkBeL45zNr6RUI3lnJAqDj2rFXV6fddlDEQPD0sT8ufLpy7IoM0N Enw+OQjl8+LeLEEe3qPegqnCiWOB5jbdmhlw08J7KMuS1KwKnMKVQF5t+QPvgemv 5BI+9aPVub5Nceb3Z573819qb3rc6cwJKS/zY/Tos4/gnA9GBFL60G9tpEv4XEIu OPnkOHudBtSCIkYTRgy6ZNmuvEC3L1+f4Py20GQ2JuUC8YvWiPndPb9WJoGQoLe+ sxFM6Lk1Yr3urxiXzPGUjSiUmqL4gekiQukod9anybiKCCIdADXDC1bdETRXrohG kP2Vty/1VkOjm5Q4GBv/532p6+8rowZEnJZsuZBHN9YKQYUZTgdYwmTCaFBvj3DR sfJmXPZEk1J7+lNA2dNmt5kDjdXyjbCtMJXz8UTbPhN8SZefSGcvf43JXfPDVgLD UuBQ248UVvqgkkMdeJmw+s7o4nmqpWzR664a9NXsYCPUJQXrRUbw25/+ihI4hPVn Nj7dGNXNUUCDkG4khK6pBa4Ji0B4rtz7RbjMzBhTHvH8Xaow0BAVg2xHrYLNWZqh knNfhapzFr0ssgAeDseT =lVyM -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--