Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7106062ybi; Thu, 13 Jun 2019 09:39:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwV9voEVC8PcttjZsAzm9tAay+xODQFqjcKU+h028UfwbqJfEoPo0bBfetxsiFOD8RhCRN X-Received: by 2002:a17:90a:2627:: with SMTP id l36mr6648624pje.71.1560443941395; Thu, 13 Jun 2019 09:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560443941; cv=none; d=google.com; s=arc-20160816; b=KS70Dy0HXpUPJCwWEJNfFiLQhWYC1ZihoHgbuzpCLj7bxfc2a6nyVX/rCLvNg/S1j1 x/GgH+1qxhfSql4a2kny8fbrrdjBfWHpe2VCe2VVjEj96I4opJXGGS56UJjdjmUO9+e0 DAhdP78p5HQ19U5D95ZKAMkw+tzlwcydOG+gZY+LBKbIn0/Z0AWj6ystyEYaW+Tq3opc jki1lD+PVh9N2ieGHvNfuKUr0MLqhUrGBLRmki2fVQ4etISta8TqRSx3mcu184dpjMkI e0/2ZI9tnFPyHyeY3oMCVN1ShYsEnWCBxPY8V7cTHM+K95fesYKll42EBEgz1Ut4TlZR hgxA== 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 :message-id:date:subject:cc:to:from; bh=JaASn3/40k4CVxpZ9sNVCUoMncQsbGi8v5jcyQTsbXY=; b=mXSPisj4s4cUQk8Skt7BZ/v5pMMAP2VbP+W4yTaoVpwMb9CQOe3zWLlBpO4ypAjJfF 3jRsJQl/lC4t7itPRQFehJvz0aSVaCfongLf+gMgBWogY6xEo1/cESZLNSaijBc1XPUe OPfA3EdZfxqGFigAzLvDYq/Ls/bIlsDyDsxqdAgdSk/au7YXJSEa7xgSILvIphCjwCPv Dm6VtWfCJ8dLxs5I0WWdEGHojCSxatgJGEC4BlPrkZnz6gKw7s7p5/+OwL7nPpSKIr4I jchTEcVn4N/Ap3YCAsjKnlFBfKhEX+QXHK6vCmdNFStS5hseFF3k00+D0I9xcn4o0b6e Mmeg== 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 h3si81449pgv.403.2019.06.13.09.38.46; Thu, 13 Jun 2019 09:39:01 -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 S2404075AbfFMQii (ORCPT + 99 others); Thu, 13 Jun 2019 12:38:38 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:11951 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392729AbfFMQic (ORCPT ); Thu, 13 Jun 2019 12:38:32 -0400 Received: from anisse-station.iliad.local (unknown [213.36.7.13]) by smtp3-g21.free.fr (Postfix) with ESMTPS id 3D8A813F8F2; Thu, 13 Jun 2019 18:38:05 +0200 (CEST) From: Anisse Astier To: Catalin Marinas , Will Deacon , Dave Martin , linux-arm-kernel@lists.infradead.org Cc: Kristina Martsenko , Richard Henderson , Mark Rutland , linux-kernel@vger.kernel.org, Rich Felker , "Dmitry V . Levin" , Ricardo Salveti , Anisse Astier Subject: [PATCH] arm64/sve: should not depend on Date: Thu, 13 Jun 2019 18:38:01 +0200 Message-Id: <20190613163801.21949-1-aastier@freebox.fr> X-Mailer: git-send-email 2.19.1 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. This fixes an UAPI regression introduced in commit 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 d78623acb649..03b6d6f029fc 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 << 1) /* PR_SVE_VL_INHERIT */ +#define SVE_PT_VL_ONEXEC (1 << 2) /* PR_SVE_SET_VL_ONEXEC */ /* -- 2.19.1