Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2528586ybi; Mon, 17 Jun 2019 06:25:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5z9Rw4iVP5ujfweQxpcoadkDqQ/yV5lpBZIya+acdqstjKs4g7XmqPryhXU8fqes5peOE X-Received: by 2002:a62:1c5:: with SMTP id 188mr49567284pfb.26.1560777951738; Mon, 17 Jun 2019 06:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560777951; cv=none; d=google.com; s=arc-20160816; b=TUsa7T7uDrAWjzoejP++FEBPsMK8B+UVzZkVvNWcLRIRkhyXJe6qf4sm09Rk+RnLaR Bf8ELCNc1DsRq19UsjbEyrrHOk+lbeNZXrQpj58LWmL/GU9CqktBpy8tG14OCAHdBG9u rY8BhoXGelj3g2EYbzu+0cFy2urSxoA0ggETkmCHZMuv+zGE9xIr+X3ob33Bkk2quarW wgX16vpTUn6BFfuejstzHsY+uwsfiDUMl9LqiLDpb3yPFtvPi1bFhi0P6bEet1NjgxlX MAYe/BgCXbnLaen/pgENqVzUnykTU+p7th+CRfAoDUeJonXcdSiIKmWvdgBCHfg0phX2 5SbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=G3ea5SWkWx4LV8GfXSLJI+6a1qlMtInyirnH0MALCCs=; b=Kx+9XKrs//Cn2XW5hhdPsnmjY2YE7Oz9+57PX+DaRi8zy9wwUxktbJ7zxQGOlPFcJr /3EUGlN/9b61B9AcYGpQnzYMwlX2M5sRx8qpIax044jYWwEWjIYU5EEPlPDw/TN9GLNV UOGmRfMjMtQacfqOIq4pdZByUqMJW31o8kT79Rtvs/4+2oUgMsJ8HUbVrCHJzjoiw6K5 hq/yTyrNQ19tKKjygqnkiQu8szaZr17lKkskkoVqKru1RJICSpWdVpPa67eWTHaAINkP U9scUXvFCiaFbTs3w8StRd2RpS4f9MbPlKkW0uHw6oOYBpfzcnxmdAIgoK38FF/6dypC 7JaA== 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 n63si10754027pjb.36.2019.06.17.06.25.34; Mon, 17 Jun 2019 06:25:51 -0700 (PDT) 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 S1727806AbfFQNXU (ORCPT + 99 others); Mon, 17 Jun 2019 09:23:20 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:12941 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727765AbfFQNXU (ORCPT ); Mon, 17 Jun 2019 09:23:20 -0400 Received: from anisse-station.iliad.local (unknown [213.36.7.13]) by smtp3-g21.free.fr (Postfix) with ESMTPS id CDE8713F85F; Mon, 17 Jun 2019 15:22:49 +0200 (CEST) From: Anisse Astier To: Will Deacon , Dave Martin , linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Kristina Martsenko , Richard Henderson , Mark Rutland , linux-kernel@vger.kernel.org, Rich Felker , "Dmitry V . Levin" , Ricardo Salveti , Sasha Levin , Anisse Astier Subject: [PATCH v3 2/2] arm64/sve: should not depend on Date: Mon, 17 Jun 2019 15:22:22 +0200 Message-Id: <20190617132222.32182-2-aastier@freebox.fr> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190617132222.32182-1-aastier@freebox.fr> References: <20190617084545.GA38959@anisse-station> <20190617132222.32182-1-aastier@freebox.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Otherwise this will create userspace build issues for any program (strace, qemu) that includes both (with musl libc) and (which then includes ), like this: error: redefinition of 'struct prctl_mm_map' struct prctl_mm_map { See https://github.com/foundriesio/meta-lmp/commit/6d4a106e191b5d79c41b9ac78fd321316d3013c0 for a public example of people working around this issue. Copying the defines is a bit imperfect here, but better than creating a whole other header for just two defines that would never change, as part of the kernel ABI. This patch depends on patch "arm64: ssbd: explicitly depend on " for kernel >= 4.18 Fixes: 43d4da2c45b2 ("arm64/sve: ptrace and ELF coredump support") Cc: stable@vger.kernel.org Signed-off-by: Anisse Astier --- arch/arm64/include/uapi/asm/ptrace.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h index 97c53203150b..e932284993d4 100644 --- a/arch/arm64/include/uapi/asm/ptrace.h +++ b/arch/arm64/include/uapi/asm/ptrace.h @@ -65,8 +65,6 @@ #ifndef __ASSEMBLY__ -#include - /* * User structures for general purpose, floating point and debug registers. */ @@ -113,10 +111,10 @@ struct user_sve_header { /* * Common SVE_PT_* flags: - * These must be kept in sync with prctl interface in + * These must be kept in sync with prctl interface in */ -#define SVE_PT_VL_INHERIT (PR_SVE_VL_INHERIT >> 16) -#define SVE_PT_VL_ONEXEC (PR_SVE_SET_VL_ONEXEC >> 16) +#define SVE_PT_VL_INHERIT ((1 << 17) /* PR_SVE_VL_INHERIT */ >> 16) +#define SVE_PT_VL_ONEXEC ((1 << 18) /* PR_SVE_SET_VL_ONEXEC */ >> 16) /* -- 2.19.1