Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp682810imu; Wed, 9 Jan 2019 04:46:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ZiFkqvCcUBvaJzcgOL9LPvpZ7fuS3ERKqHJxQH1S8/E1hcjY89hkzwc4BDTa6oVcRDyVf X-Received: by 2002:a17:902:e20b:: with SMTP id ce11mr5701621plb.251.1547037982533; Wed, 09 Jan 2019 04:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547037982; cv=none; d=google.com; s=arc-20160816; b=S0zlPPwZcQJjt2y2O2aporlm9fZVLWSHSpCSABR5yz3ATbbywpliYjOn6oZfq7GTTC JbpzlTyU/8yWFSqw0iv0OEzU7sqThuzOpci7pv4f45nYKlA1zxicu0yZ/A02RzPCAlvz 7GlOFUklBxcLHfDYz9S7v/nNB2CMSBF0PlZRWGotqIhAJIEAkcwg1pzY3lh6J6HtuRxD rGT5h2LWYhasdRRTcnybPCaM659aDVRy4ctefDfMBwzWqo593NugVFfE3UziAxnBJ8PT xgzPccnoq4h6eGsFmk6bj5jtwjhrM2wsuNzND7dNoegtN/DIsCVzWB3rIJvy2Y5/Qj8b cFJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iukb+5joN0Gem+QkUjOt2fAAiICTK0V5pmMADzcGtTw=; b=KZFZVD7NuOCYQk6FsXljyLLMqteuzZvt7CsgPAOr797qZZ2BmGNma9tjAy5gO+djLH r0RfDtTg7ZvuWWEqGzDER6WH85FcxDp6Ji+iBp4FHp9g+L/+z3TobeWrLoN2HeWxE3Jv Mweezh2Hlb4fr1e2xb4+qeNFSFQwitf2da9fhbwTZgFSJAnnIdwWbZJTJCYcA0vuK35z ni7GO8CLhEW9WLF4QKMhVgWGhELAGhNsdYHFXXGgaXxiL4qVCje41beiFdNDo+DiRJ8P oCv/gJHDHWHQuFSec57N69Rn3D+OF+ypQYqJAMmmXYnyWOiNkO2zX5l2DZgrxc9miExP tIdA== 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 t9si3092853pfk.35.2019.01.09.04.46.07; Wed, 09 Jan 2019 04:46:22 -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 S1730807AbfAIMnV (ORCPT + 99 others); Wed, 9 Jan 2019 07:43:21 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:56978 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730783AbfAIMnU (ORCPT ); Wed, 9 Jan 2019 07:43:20 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id DD11272CA5E; Wed, 9 Jan 2019 15:43:16 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id D3A797CCE38; Wed, 9 Jan 2019 15:43:16 +0300 (MSK) Date: Wed, 9 Jan 2019 15:43:16 +0300 From: "Dmitry V. Levin" To: Paul Moore Cc: Greentime Hu , Vincent Chen , Elvira Khabirova , Eugene Syromyatnikov , Oleg Nesterov , Andy Lutomirski , linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 08/14] Move EM_NDS32 to uapi/linux/elf-em.h Message-ID: <20190109124316.GH11981@altlinux.org> References: <20190109124044.GA11935@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_NDS32 in order to define AUDIT_ARCH_NDS32 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 Cc: Greentime Hu Cc: Vincent Chen Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: linux-audit@redhat.com Signed-off-by: Dmitry V. Levin --- arch/nds32/include/asm/elf.h | 3 +-- include/uapi/linux/elf-em.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/nds32/include/asm/elf.h b/arch/nds32/include/asm/elf.h index 95f3ea253e4c..02250626b9f0 100644 --- a/arch/nds32/include/asm/elf.h +++ b/arch/nds32/include/asm/elf.h @@ -10,14 +10,13 @@ #include #include +#include typedef unsigned long elf_greg_t; typedef unsigned long elf_freg_t[3]; extern unsigned int elf_hwcap; -#define EM_NDS32 167 - #define R_NDS32_NONE 0 #define R_NDS32_16_RELA 19 #define R_NDS32_32_RELA 20 diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index bd02325028d8..4b8df722330e 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -40,6 +40,8 @@ #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ #define EM_TI_C6000 140 /* TI C6X DSPs */ #define EM_HEXAGON 164 /* QUALCOMM Hexagon */ +#define EM_NDS32 167 /* Andes Technology compact code size + embedded RISC processor family */ #define EM_AARCH64 183 /* ARM 64 bit */ #define EM_TILEPRO 188 /* Tilera TILEPro */ #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ -- ldv