Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp76411imu; Mon, 19 Nov 2018 18:04:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vw8ZU7ckzNSo+sdTw7kIjRI5+pZEktSQA6UFnw1sufYqf4aEn4aPhc1sT9k/TfGzECopgR X-Received: by 2002:a63:89c2:: with SMTP id v185mr113133pgd.97.1542679497337; Mon, 19 Nov 2018 18:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542679497; cv=none; d=google.com; s=arc-20160816; b=K1j/vBg2swOzV1NYw3kbiuRWq3XuP2W87SCqN2HlPU0bUEKSfPYHZm0hXnhUDbYMy8 t+N+qV9lbZGu1Oer4CLJHVHNGEPZCpitvAXGWrEEEJ1l5UKhx/TMDamFaxmWygrIhec+ fOK8CduYfKlbUbf14hd6eHyqR3ZPoXoBuo5uZFq299qxg0FY26tWeS37/EPShCK13hZ8 FhWmWfMOBs75DC1jxaN2+lrUVBsPjQWrTc5cxLXPMDU76G+WNWaFVkqzlJ+amk0qrpXa nGv4gdN3bkLYK0cAARLjrn480mmwDDYxMspSSLPGD05RuFyr2TD2Yug8+932mp96czd3 Dvog== 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=gqWBVI2nKFyLxXr83YD/cliNTLfQz72l4VHOYgb9Rlo=; b=o2Vu75WCiyD8pTz8jsG3+K+i3stUqQ9uOG+RUMgs7Xk9MPkAo61Wy6ikeqMJB90iPS 832FwOVjBUXCqXIeFcgoxU716DdZckXFFytksaClaIMAOiAZGWx6EAH+2bzfgBXSQpO3 jVqmVvkVTOeQWc03zquTrz8dfR9LWdXBPr935Dub8UbeWAEAhuQ63RpLzwj+GIrIeer6 1itrIBaQl8/cTOdBg38LWNZ0MWIPhqmw0uECsgRAcBUEKgY5As3V3CawJRXAUtmGOtSA AchURzgBwKZVs3Uc7PAIaKPNrKYwTPev8qNGf1WnzIw/Qgd03gRH76jdOJA/dYGizeSK S+4A== 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 k2-v6si41297993plt.254.2018.11.19.18.04.38; Mon, 19 Nov 2018 18:04:57 -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 S1732266AbeKTKke (ORCPT + 99 others); Tue, 20 Nov 2018 05:40:34 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:53500 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732000AbeKTKke (ORCPT ); Tue, 20 Nov 2018 05:40:34 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id B058672CA5E; Tue, 20 Nov 2018 03:14:18 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id A2A937CD1FF; Tue, 20 Nov 2018 03:14:18 +0300 (MSK) Date: Tue, 20 Nov 2018 03:14:18 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Richard Kuo Cc: Elvira Khabirova , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/15] Move EM_HEXAGON to uapi/linux/elf-em.h Message-ID: <20181120001418.GA11387@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 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_HEXAGON in order to define AUDIT_ARCH_HEXAGON 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. Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 arch/hexagon/include/asm/elf.h | 6 +----- include/uapi/linux/elf-em.h | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/hexagon/include/asm/elf.h b/arch/hexagon/include/asm/elf.h index 80311e7b8ca6..d10fbd54ae51 100644 --- a/arch/hexagon/include/asm/elf.h +++ b/arch/hexagon/include/asm/elf.h @@ -23,11 +23,7 @@ #include #include - -/* - * This should really be in linux/elf-em.h. - */ -#define EM_HEXAGON 164 /* QUALCOMM Hexagon */ +#include struct elf32_hdr; diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 93722e60204c..ba3696e3d694 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -37,6 +37,7 @@ #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 */ +#define EM_HEXAGON 164 /* QUALCOMM Hexagon */ #define EM_AARCH64 183 /* ARM 64 bit */ #define EM_TILEPRO 188 /* Tilera TILEPro */ #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ -- ldv