Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1914004img; Wed, 27 Feb 2019 07:33:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IYk6k2fMWnXO6DVKCL5ZXsawMs2nw0MZ2rLjLSiaP3hMSmENsescRHYMzsWqOB9MEVEq+U4 X-Received: by 2002:a17:902:a414:: with SMTP id p20mr2645933plq.289.1551281588683; Wed, 27 Feb 2019 07:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551281588; cv=none; d=google.com; s=arc-20160816; b=KrlGBgQK4etiolqiDdk3AiZYdjxAMZ1rY0VyGrnL2DCWGkKuMiwKLHvcJzfXVbgRt6 c5cCw/o24KaqxQVFb8UjG/q6VlfPf8LkVkKJbiXYk1xFd50ahziRBDhi0nUXge+n2O/n VHjuOcsfiN+JBzG3bjf5pD2uaCtHRDCJ2bm66fNHVII7DDIlCxSF7D/dN8NxOL5JEhVL bnH3xzHRD2MfBF7sL9LZR0k505OIIgw9VsuJEbctVt9QeSJc1t0BbBsYGA8QzHDdogum GtwbX1034yhJn3TS1OQgEXKa5nBsJ13x0qGGuPTtEVZwVTmtoDkpWYIbwdTcPkscNGHJ Fvpw== 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:message-id:subject:cc:to:from:date; bh=G1NSd98n5/gfXunt5UlGIe1PPzvUzVupOslxzJbSP4E=; b=QAestazh121ugRXYOCi0ldOkSoi3jFaT+4GOQeYZuqDWV/kuuhfZp/mU9mvw/FRb9O Avxx57zxeZClDKirO9qSPW+s4FHIwIQRP6fk0QRXOWVXfj2vMTT15nu2PM7aW81vfax8 IS+6p3XB4zJ1NIYjJEoRrm02Kvlv3HLy9W5QdgMUPOT2hUOWXBjXDRSryoL4Nsl/YGUy yqpJm3/f+EPpYdc3CXjHtpGOmLVsDsnOWFNWYGBzj4Q2fuRhoVEb1qaa/8XAmoz05Nzo FUUQjmnvykaYEMbRi06lKlaMDYrt/yDciPDFBTs1bqWPWpRFd41aDXEZZzQiMQAEp2xc 2u2w== 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 16si11667396pgc.312.2019.02.27.07.32.53; Wed, 27 Feb 2019 07:33:08 -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 S1730030AbfB0Pah (ORCPT + 99 others); Wed, 27 Feb 2019 10:30:37 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:39716 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfB0Pah (ORCPT ); Wed, 27 Feb 2019 10:30:37 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id B4DD672CCBA; Wed, 27 Feb 2019 18:30:34 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id AA2FB7CC72E; Wed, 27 Feb 2019 18:30:34 +0300 (MSK) Date: Wed, 27 Feb 2019 18:30:34 +0300 From: "Dmitry V. Levin" To: Greentime Hu , Vincent Chen Cc: Elvira Khabirova , Eugene Syromyatnikov , Oleg Nesterov , Andy Lutomirski , Paul Moore , linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 08/14] Move EM_NDS32 to uapi/linux/elf-em.h Message-ID: <20190227153034.GD23744@altlinux.org> References: <20190109124044.GA11935@altlinux.org> <20190109124316.GH11981@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190109124316.GH11981@altlinux.org> 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 --- This is just a gentle ping, the patch is unchanged. 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