From patchwork Thu Oct 10 18:44:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 175816 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2683153ill; Thu, 10 Oct 2019 11:45:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWYp6NhxD/MERCIgkelyxSF2QBPckNX38S3W7gGH0u5K6K6EfQw7ZSZoJzhC6YdB7eo6vv X-Received: by 2002:a17:906:4d50:: with SMTP id b16mr9513698ejv.245.1570733141030; Thu, 10 Oct 2019 11:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570733141; cv=none; d=google.com; s=arc-20160816; b=QtMltoFDDCeSY/egpXUOvI6PWlCe/hh9tBY3X+g3Xe1Y289RuCXW6Bo1QqiqZt7IaN 4RtS9Q6D5gXcL4lFkqRqK+CRhi/uZGrufwnPWqYfeQJFgLN+ieCXziVx7Y+cZg4wSF6Z BxXZTWA4UBo1Qzj5yXmSgKS+THfpuO71PGKkglHQCr8EPaLI69nIKJSviGPt9FADnGas qS9gDtUTSXRV7FEXzr5D4ftlMCofrP6g6/Rv40vDD69ADTh4hSwSbaZHgrh4k9khrHxv GkOFmgBGy83h8kt+S3i+QucjjfUC6etujxutGAkyGU5KLMjqE37xehpNupDfy/yKpShs 6B3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=3Hera2G2eiKAaU3Aim9i6wg/7ybKyQW86IKeDQBRQ6c=; b=ps/rmBPnBTZi7BQCURyLPbSEveIJBWbr/X1Ph/sYc2mjFJ2Kb9t98flJ7A/qC75Cp1 4x2mz1QsV6q2QJ/XWvu9sPiyctfW//1j8TL10vFSIqScxAw4PaRp6cxDQ01bBqZ4A+7n 9+7iH5MSY3afDuPHjvVHMy8HBtFLEBkgrWve+sNaIPLyeRsqvx5xW/hRSB9KEJssUW2i YfKJAgE4HrY27qgav70VNAxiaX7ZsHkNdDi3Z9g5i73wmZszAJnofl8FOAVsilkyu3R1 c7GG8LCrVAKzfMC6D5gY5q5hlNh2PT4cHdovidKnVBBgrRfYYy5AruNzQ66T4b5C6CjP Jz6w== 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 c31si3894492edb.309.2019.10.10.11.45.40; Thu, 10 Oct 2019 11:45:41 -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 S1727169AbfJJSpk (ORCPT + 22 others); Thu, 10 Oct 2019 14:45:40 -0400 Received: from foss.arm.com ([217.140.110.172]:38338 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbfJJSpj (ORCPT ); Thu, 10 Oct 2019 14:45:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 891B01570; Thu, 10 Oct 2019 11:45:38 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B54033F703; Thu, 10 Oct 2019 11:45:35 -0700 (PDT) From: Dave Martin To: linux-kernel@vger.kernel.org Cc: Andrew Jones , Arnd Bergmann , Catalin Marinas , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Kees Cook , =?utf-8?q?Kristina_Mart=C5=A1enko?= , Mark Brown , Paul Elliott , Peter Zijlstra , Richard Henderson , Sudakshina Das , Szabolcs Nagy , Thomas Gleixner , Will Deacon , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 03/12] mm: Reserve asm-generic prot flag 0x10 for arch use Date: Thu, 10 Oct 2019 19:44:31 +0100 Message-Id: <1570733080-21015-4-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1570733080-21015-1-git-send-email-Dave.Martin@arm.com> References: <1570733080-21015-1-git-send-email-Dave.Martin@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The asm-generic mman definitions are used by a few architectures that also define an arch-specific PROT flag with value 0x10. This currently applies to sparc and powerpc, and arm64 will soon join in. To help future maintainers, document the use of this flag in the asm-generic header too. Signed-off-by: Dave Martin --- include/uapi/asm-generic/mman-common.h | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h index c160a53..81442d2 100644 --- a/include/uapi/asm-generic/mman-common.h +++ b/include/uapi/asm-generic/mman-common.h @@ -11,6 +11,7 @@ #define PROT_WRITE 0x2 /* page can be written */ #define PROT_EXEC 0x4 /* page can be executed */ #define PROT_SEM 0x8 /* page may be used for atomic ops */ + /* 0x10 reserved for arch-specific use */ #define PROT_NONE 0x0 /* page can not be accessed */ #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */