Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1369922imu; Fri, 9 Nov 2018 15:35:23 -0800 (PST) X-Google-Smtp-Source: AJdET5c3iCArDrIC1MH4+mjgtW2On7ZW/4w+kcWDYKXCFZq8BfwDNg0JQGpMK4HIZEuck0nUfaXg X-Received: by 2002:a62:6486:: with SMTP id y128-v6mr11308405pfb.76.1541806523506; Fri, 09 Nov 2018 15:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541806523; cv=none; d=google.com; s=arc-20160816; b=F6kwfB34zASRavz4dneO+Url1NDY6AFV6maAwEvMI8XELPD7sKbYdKHMeKtfahz1wD Rh42NkSG5PiXRaweaIv9c4BlS4xzRHZ/30G3YAkccVqW1A2EgDy3Dsxrg/+A/Z8RBJX9 nN7JFgHlSMQQJRnDu7TDHXQweFpM9BomRVfHuBc8PBTp0FXSC4b8d0sdRVer278XLUfu LYnrrOTAFqI0lxwqNFFjrmpB03Uqz0L2lX1vbN43z9PqZQBFQaZiJ6imEpjzxUb/emlY kVPL7/JWW2OO9zlOKJ3wGVRZFQ6vCKfmf+MmkhWNkoQGWhlROysiZUr4Fe+ohgAzyZc4 aCzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=gZuWOaje+z1BF83ZyP6UnDzvU33ZLpv0Zw8mOXzVF8w=; b=HRSZ66YzAs9XNkPHOEjFWjmvpnqPBtNABZQGNbl4D/mSR5DoQxNO9/ULUn6VWoWIVt cMot/yIHB3yk66RPFTYOwnLGpOnOLUzOZuvckAw3QlVkNVQJT1t2KS/PxkCGImz47WcZ BqsSZF15ELh2tWb3beLm83h0TGxNCa1G9ct3Ggquxm2bGv12uyOJlMM1zGLsq3d5Ye/3 xtr7viT+bkIp+xT2Teuxzfa1MbxXrNsNmlA/Fv+nUMXNCutDcfa2e5GQbLypkO4saJMW iNd0ioQWqVefZAM4tMDnhD8nYrmhu0MxyVcQEjIP78rfhn40T7H3NBhzKE8YshhS+HiO +KmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h19si8054940pgb.231.2018.11.09.15.35.08; Fri, 09 Nov 2018 15:35:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728796AbeKJJQO (ORCPT + 99 others); Sat, 10 Nov 2018 04:16:14 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:57526 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727557AbeKJJQN (ORCPT ); Sat, 10 Nov 2018 04:16:13 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 9FE4872CBF9; Sat, 10 Nov 2018 02:33:23 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 9224B7CD1FF; Sat, 10 Nov 2018 02:33:23 +0300 (MSK) Date: Sat, 10 Nov 2018 02:33:23 +0300 From: "Dmitry V. Levin" To: Vineet Gupta , Andy Lutomirski Cc: Elvira Khabirova , Alexey Brodkin , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/13 v2] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Message-ID: <20181109233323.GB2710@altlinux.org> Mail-Followup-To: Vineet Gupta , Andy Lutomirski , Elvira Khabirova , Alexey Brodkin , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181109031536.GB21511@altlinux.org> <20181109214422.GB1907@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109214422.GB1907@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Dmitry V. Levin --- v2: do not add EM_ARC, move EM_ARCOMPACT and EM_ARCV2 instead. 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 ba3696e3d694..91b33833630b 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 */ @@ -42,6 +43,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