Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1375886imu; Fri, 9 Nov 2018 15:43:24 -0800 (PST) X-Google-Smtp-Source: AJdET5eM3MLV5OsD9MvclxIA+Ht6+IASwiaKdSfLRfCdKo7b/57yG2v9P22ZqQqiHGSMxNU18WhP X-Received: by 2002:a17:902:6a87:: with SMTP id n7-v6mr7897524plk.86.1541807004339; Fri, 09 Nov 2018 15:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541807004; cv=none; d=google.com; s=arc-20160816; b=G3kDtQuaRvaCxBrNrnGygR49qNSJnxm8B2HFM6r2bL0oU7tXs6TVuHvJcnKImpCwUT mJUmr6l6mHHHmccvrJ9NiDPSsP5coHWx+edsLydcjlB0AkHMq9Fd/N3CPNalNSsRtirE cb5ivmw9OSXQAODSRjfDcR8Qe+g34u0e0INNjGYB2mwI1lEu4Kzj8t1QVQhIXMN0Gcjf X8p+DbK8hetqII5bDdnkeDGAtW08enPt30kVnwnRKxlkN1tYi7GsdduwEpglmqzs3iE3 yzt8KfDrAn/HeM3X1eLocUiQzpwANDNLyclGofJMs73GswKQCOkn+ozHxZQKbgyFEWuz P4gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=J0KDDsIgO6Ep2IHZ7ORVsYvggMxENBmmvSkbhMjiGVI=; b=OPIr1j5Fkvn1dTNjqxKI77iycVdhmB91kPjYe5x3YtIjZQmSvFnCQlQ1jEtK7rzmiu aqO0t4O4ou0nSi0fDll2iS9zAgWUwICqDSqfj9WHWzStMsUxqB12JSMgeAORJ1yrMrTi B5ycO6OcezVaPNXZ7cJen6MqyLUD8qGzjG0NAI7WDoM/1C0QfP1b8Ak+8fkFFBAj7cms LjV1F4N3bohYAUtPBNTML+vg5tPn3gPWgRGB7FjuCwgIjcmkoLaaNcosBewGw7/sW0Hf 0ckvekHIVxRu0cClJRSdxIfS64X00bR0Lhm/r5GRqDhCrZuyvC7Lgr2nDSByTWghaOUm P2uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=AFP4a2EV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si8847757plz.250.2018.11.09.15.43.08; Fri, 09 Nov 2018 15:43:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=AFP4a2EV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728228AbeKJJZe (ORCPT + 99 others); Sat, 10 Nov 2018 04:25:34 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:36560 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKJJZd (ORCPT ); Sat, 10 Nov 2018 04:25:33 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 95B1010C1133; Fri, 9 Nov 2018 15:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541806962; bh=c/Gvakzv00juYXznJh8gGDU5tll83+dNjMdfEE9UwgE=; h=From:To:CC:Subject:Date:References:From; b=AFP4a2EVrFP+7DM3E2QAy1g8ZwHY9sxz3xLY7G9KhA0bV8r7u1Zgw3SFj//kmc+Hb FIBrRo5LB84D6WSmVHJfY2ZByb+cMJreIw0s56GSMTB5u7KKNGnSKL2gpBX8QYpsSU /Hd6lPxUEkBVZdIMNMGzz/tcBhFqGY7IHbEohCKXyz2xj+uSINC0msgx7c0CAENaz6 XtkGJK8/AkFA/7HhRdMUDfSMjbEssTYKQcrUtktHOvLtnW4gYREmCXw6fDAQTB23ZD aeOLgOUQL5AFdJxWe4AUBQT6luuj2baoTwhZKX70r8sX//sFGEk8MyCassBDq8j8DW u/KJhmrMo2Dbg== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 87D4457D5; Fri, 9 Nov 2018 15:42:42 -0800 (PST) Received: from us01wembx1.internal.synopsys.com ([169.254.1.228]) by us01wehtc1.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Fri, 9 Nov 2018 15:42:42 -0800 From: Vineet Gupta To: "Dmitry V. Levin" , Andy Lutomirski CC: Elvira Khabirova , Alexey Brodkin , "linux-snps-arc@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 02/13 v2] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Thread-Topic: [PATCH 02/13 v2] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Thread-Index: AQHUeISdB9NL+B8fI0iDrdKf7mBIdg== Date: Fri, 9 Nov 2018 23:42:41 +0000 Message-ID: References: <20181109031536.GB21511@altlinux.org> <20181109214422.GB1907@altlinux.org> <20181109233323.GB2710@altlinux.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.104] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/18 3:33 PM, Dmitry V. Levin wrote:=0A= > These should never have been defined in the arch tree to begin with, and= =0A= > now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 i= n=0A= > order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are neede= d=0A= > to implement syscall_get_arch() which in turn is required to extend the= =0A= > generic ptrace API with PTRACE_GET_SYSCALL_INFO request.=0A= >=0A= > Signed-off-by: Dmitry V. Levin =0A= > ---=0A= > v2: do not add EM_ARC, move EM_ARCOMPACT and EM_ARCV2 instead.=0A= >=0A= > arch/arc/include/asm/elf.h | 6 +-----=0A= > include/uapi/linux/elf-em.h | 2 ++=0A= > 2 files changed, 3 insertions(+), 5 deletions(-)=0A= >=0A= > diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h=0A= > index aa2d6da9d187..2b80c184c9c8 100644=0A= > --- a/arch/arc/include/asm/elf.h=0A= > +++ b/arch/arc/include/asm/elf.h=0A= > @@ -10,13 +10,9 @@=0A= > #define __ASM_ARC_ELF_H=0A= > =0A= > #include =0A= > +#include =0A= > #include =0A= > =0A= > -/* These ELF defines belong to uapi but libc elf.h already defines them = */=0A= > -#define EM_ARCOMPACT 93=0A= > -=0A= > -#define EM_ARCV2 195 /* ARCv2 Cores */=0A= > -=0A= > #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \=0A= > EM_ARCOMPACT : EM_ARCV2)=0A= > =0A= > diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h=0A= > index ba3696e3d694..91b33833630b 100644=0A= > --- a/include/uapi/linux/elf-em.h=0A= > +++ b/include/uapi/linux/elf-em.h=0A= > @@ -34,6 +34,7 @@=0A= > #define EM_M32R 88 /* Renesas M32R */=0A= > #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */=0A= > #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */= =0A= > +#define EM_ARCOMPACT 93 /* ARCompact processor */=0A= > #define EM_BLACKFIN 106 /* ADI Blackfin Processor */=0A= > #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */=0A= > #define EM_TI_C6000 140 /* TI C6X DSPs */=0A= > @@ -42,6 +43,7 @@=0A= > #define EM_TILEPRO 188 /* Tilera TILEPro */=0A= > #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */=0A= > #define EM_TILEGX 191 /* Tilera TILE-Gx */=0A= > +#define EM_ARCV2 195 /* ARCv2 Cores */=0A= > #define EM_RISCV 243 /* RISC-V */=0A= > #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */=0A= > #define EM_FRV 0x5441 /* Fujitsu FR-V */=0A= =0A= Seems OK in theory - but now we are exporting these to uapi and per my orig= inal=0A= comment there were redef errors with libc elf.h atleast. Perhaps this being= a=0A= different header might be OK !=0A= =0A= Acked-by: Vineet Gupta =0A= =0A= =0A= =0A=