Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2013076imu; Sat, 10 Nov 2018 06:10:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cB2RpUNh5fpm4guptnYuep6FNfKXwbO0foiDNN1EVzbjg52RRTuS+6mKY2iftUyT6LTAr3 X-Received: by 2002:a62:8145:: with SMTP id t66-v6mr13025097pfd.246.1541859026982; Sat, 10 Nov 2018 06:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541859026; cv=none; d=google.com; s=arc-20160816; b=UQ3t9Dy9bcrAcS6NTMCCZ/hPC7UaRls1aHWMtZQkKcGTNB2caWbi3VCS0egTeDGRv7 fh2kqbzyRV9geCRBkQoyZ91X5m4cFeNBIsyxBXjS4eq8RpLXocT+VJyCC01bVdj58+AQ S9MEGIQyXd6Ow70rCBaQsCyBGIuBjEUNplToDOYeckKLOOA/XFNy0pCwMwN90ynM/7gE 8A4kMePuqYBNBetDGXGDHTyRBmQI4EU6CEPI5P+CqUYuawi3BJJ8YkWLlB0hQOys1NMn EIiYGU3Muv8ImIfs9Q26YrLbnBvtKBV0Jise6dahnVe1EEVIJKm0W38cw9hPLGJYjo+t awOw== 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=NgLzV+a24Xq217JnnIx/vLRSFvaLY4sWeAlXrEtPxQ8=; b=o6F+tOgp80vdPxQ3GTZ0PV61MDHm7mZqZVD2iTsiBKt37q/uMziKWg+3WCLmCslAdw iCXaitxHDzlLhNKiZIRnmh+F7ewUiBpif6pzhti4MCVPrCgrjeYnbNn/kJoJRYzg21kD m2UMhyVwBvnxDqYZknNktOIV6JbTBhvQYg85Hx6yF/5gaiSMlcdTOwbn9ykVz4JOqOHr pvsVfYvortRkcrdnirQ+O+n+0GDpCyuN/lcf9hJ6UfP4KDAZaWlNxo6fxwwhdvc3kHGq 3NSH22l0G8TScFhugsUp396D3NwP90I4/vKwtBynBwQoPl70WcWMVUSldRKusGGWkMFn UUzg== 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 a17-v6si10502171pgf.443.2018.11.10.06.10.01; Sat, 10 Nov 2018 06:10:26 -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 S1729074AbeKJXyo (ORCPT + 99 others); Sat, 10 Nov 2018 18:54:44 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:59146 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729013AbeKJXyo (ORCPT ); Sat, 10 Nov 2018 18:54:44 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 7E7B972CC59; Sat, 10 Nov 2018 17:09:33 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 632B67CD1FF; Sat, 10 Nov 2018 17:09:33 +0300 (MSK) Date: Sat, 10 Nov 2018 17:09:33 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Guan Xuetao Cc: Elvira Khabirova , linux-kernel@vger.kernel.org Subject: [PATCH 14/13] Move EM_UNICORE to uapi/linux/elf-em.h Message-ID: <20181110140933.GA12698@altlinux.org> References: <20181107042751.3b519062@akathisia> <20181109031303.GA20906@altlinux.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_UNICORE in order to define AUDIT_ARCH_UNICORE 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 --- Apparently, we need to implement syscall_get_arch() on all architectures where linux/tracehook.h is compiled, not just those that use tracehook_report_syscall_entry(). This adds one more architecture to the initial list of 9 architectures where syscall_get_arch() has to be implemented. arch/unicore32/include/asm/elf.h | 3 +-- include/uapi/linux/elf-em.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/unicore32/include/asm/elf.h b/arch/unicore32/include/asm/elf.h index 829042d07722..ae66dc1be49e 100644 --- a/arch/unicore32/include/asm/elf.h +++ b/arch/unicore32/include/asm/elf.h @@ -19,6 +19,7 @@ * ELF register definitions.. */ #include +#include typedef unsigned long elf_greg_t; typedef unsigned long elf_freg_t[3]; @@ -28,8 +29,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG]; typedef struct fp_state elf_fpregset_t; -#define EM_UNICORE 110 - #define R_UNICORE_NONE 0 #define R_UNICORE_PC24 1 #define R_UNICORE_ABS32 2 diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 4b81fc1a949a..7b02cf339d8f 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -37,6 +37,7 @@ #define EM_ARCOMPACT 93 /* ARCompact processor */ #define EM_XTENSA 94 /* Tensilica Xtensa Architecture */ #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ +#define EM_UNICORE 110 /* UniCore-32 */ #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 */ -- ldv