Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp13910imu; Mon, 19 Nov 2018 16:50:36 -0800 (PST) X-Google-Smtp-Source: AJdET5dKNeJveVSurHeSDvzAZIRz7eQeCD+NaFIX3t1NSFeVUHRDORcgtXzd9uHK+ipk02V2tNJW X-Received: by 2002:a62:8145:: with SMTP id t66mr7402805pfd.55.1542675036147; Mon, 19 Nov 2018 16:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542675036; cv=none; d=google.com; s=arc-20160816; b=Z5enoGI8VmxeS0o0QE4M0WiTAtMy51loFTMpLKO099V+FVdrCDY/hlxjbOwYjGQApo WnBcZ0xdQWgtgEbEBLRTu5FrADo6WFHGgiEQkRSWSI1fa+NkULMJY3ASHmS3MhVeiM2e RvVvDhYsEecH1Dah25Sljhvx8H59GJB1EGZ5dHluYdVAtlFyGXEHoYR6Sb5eiNmG1NYg Do6LfodxjrqNCCFVO92jLH1lRiVF97zobXpV3hgr1dFzWY0NAHhZwew2DqhoUxK9L7ov w2+PZA1O/QiZHLyTpnQHLr/4EAtw7YT6C7DDV4FEE8eRp2xtTRB5pmykmTeD5ObYwiu4 FtHA== 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:message-id:subject:cc:to:from:date; bh=8K+XkKHEoK7XBPOOP8WPGJfRYSMQO4qdLHyKd2VX7XM=; b=gocM6zVt9C661GHWgyGvGEE9IxaK69sVNGz/x56oIQ1G1ViLXlYBKNFOGGgb41N59V Tf53BKWIMqXgGodm+ISosl0H4OxSqJ7i4XXXroUuzGbh/0FIc4CsFhTxN0L2UrDXkEJ+ RmfGL0M7476Xe78EJfFefuFD8jnIsoQ2ldznk/AAJ/Tne76LWimk7nVacbvWKMYSERfO ly9MMW6+FDGETxG0JIdx0wN9gv5YDYEKmmnJ9F/Q+EI1PgTHyXTe7Hy/4MLciAKOeVXR OUzq7gTblhIGm12FMmtBZzIZ/nrAr7QgwF+uug1PsFGT0qotKF67GyFzmbJmBbhOxFqn kb9Q== 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 l68-v6si47679380pfl.56.2018.11.19.16.49.57; Mon, 19 Nov 2018 16:50:36 -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 S1732275AbeKTKku (ORCPT + 99 others); Tue, 20 Nov 2018 05:40:50 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:53728 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732000AbeKTKkt (ORCPT ); Tue, 20 Nov 2018 05:40:49 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id A66AD72CA5E; Tue, 20 Nov 2018 03:14:33 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 9BC297CD1FF; Tue, 20 Nov 2018 03:14:33 +0300 (MSK) Date: Tue, 20 Nov 2018 03:14:33 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Vineet Gupta Cc: Elvira Khabirova , Alexey Brodkin , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/15] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Message-ID: <20181120001433.GB11387@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120001128.GA11300@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 Acked-by: Vineet Gupta --- v2: added Acked-by to [PATCH 02/13 v2] 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