Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp262815imu; Thu, 8 Nov 2018 19:17:06 -0800 (PST) X-Google-Smtp-Source: AJdET5c1v2AOuZ7WwWR11ooYMMuSO2NxDr0/e5J6xfYg/jxuIL5CtxgwGzNOcB3WkxO1A2pkY1lL X-Received: by 2002:a63:be4d:: with SMTP id g13mr6116043pgo.378.1541733426445; Thu, 08 Nov 2018 19:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541733426; cv=none; d=google.com; s=arc-20160816; b=VQykNFgbQZd4VG7RQsy6Uh9zgdqI2BsR8EMh2WXaMkO8W5sCVT8OG908sMXOME2+tW qsCTtXuB4KXWFnPCPQXSSn9qCUZpt8hylV249B6SuW7AGsBWqBqgbVG1ye4nL+jI3zfW M1kTkQWxJEZxLozzmRKkGt7DuCdyDVkMy/BedaioENBgAykoFA4NMkrPpkfLzy5In1j7 fk7pZwCZRLeszPSux/PMGZxqM0pQA/nIPJJbx5VArax/dOFvT7acA7uvB9f6tzbyd+tk aT+jhrQJwNynWlNdkltCboTlCVafqkpFRGJu9wdT10+STr4LacrlDO79DhsvGmsqehep 69yw== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=URbnKxNHF17+4g18LhUgIK+slGV0FtQU7Lc1SMHTOBE=; b=NPvbPvRHv94ZA4jXEYrPvbmxWu5EOQx06rZYHN9zmWFUpLBhpZKazOWe67styOS19w C3lBGOvgOiitt485oiTsYYdVQ9ybyIZiAriWzTcEMeSS/yfRAvdwW3vuYWCBluIdw9NP ryvLUUthsYQqsRvIFV6RGqoOhJXbuKkuGCZ4c98XCCCAakezySKT4m237TRBNYMYPkPW +bNz0FCfqqNmgyOaBIDrJsGCRtbBOQHQ6uKCEjVO6vh81WtgrnwXQ+lqFua6j9JCVwsE LUhcxMH9M2/IL4cNN+v0uk3fRnff75r8qzlzXRfobx6tNMiNAF3sx9Jmqw9/mn2gO4mY FGag== 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 127-v6si7068897pfg.268.2018.11.08.19.16.51; Thu, 08 Nov 2018 19:17:06 -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 S1727510AbeKIMxq (ORCPT + 99 others); Fri, 9 Nov 2018 07:53:46 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:47144 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727403AbeKIMxq (ORCPT ); Fri, 9 Nov 2018 07:53:46 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id A185972CC59; Fri, 9 Nov 2018 06:15:07 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 8BBF47CD1FF; Fri, 9 Nov 2018 06:15:07 +0300 (MSK) Date: Fri, 9 Nov 2018 06:15:07 +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 01/13] Move EM_HEXAGON to uapi/linux/elf-em.h Message-ID: <20181109031507.GA21511@altlinux.org> Mail-Followup-To: Andy Lutomirski , Richard Kuo , Elvira Khabirova , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109031303.GA20906@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 --- 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