From patchwork Fri May 24 10:25:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 165096 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp3384280ili; Fri, 24 May 2019 03:26:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrsKrJirzpgb5uM8LyyHG8RcjWmiNuHKnJ4O7GkNxh2wiNnfttUl+D11SKpZykBHQpemvI X-Received: by 2002:a17:90a:35c8:: with SMTP id r66mr8117478pjb.17.1558693588952; Fri, 24 May 2019 03:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558693588; cv=none; d=google.com; s=arc-20160816; b=ljW4GHRtFfPunCN3DL491r10NwcZULpdeL/EpSCitVLmOrdsHoCadA8YR87obLyrJD z9IuNTuN5jW3xyDGus3fJ65cYKELzh4hsNBrzCVtQCP591fQT6HBhsSpYbb41nstlp+H 5/8rO0pz9AT6nXDQwA7wJSHnFdgJZ55DN2WRPr8FaMwot3QCFfJUVuGLNkP4eeafaFM/ z1JYTpq1bm7+Ms7zk2nPmUjJ4V+fxCZeyIsjlWeW8Byrp3s+fohkvzdS+mdEOPBpDWu3 R4YrehJZEYpiwTFT5ZzQmdopV+8dccWoLggTuig7f+yJuSP7iRn7OC2T6BpMDDcJfVPg JI4g== 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=gAnGZLKcolQR2xRc+0cKmgQueAuvQi0/g8MQ74j3VXQ=; b=rUtDXoa1gtODZRSKQVPNSOoxkpl5goirvWb/uiJUXl3c78dSHGMqHasQcsIZqbq84O 6ICkxBvudkWNmcaTF67m6dcGgOxKZ28Ku9NyCngECT3mNIE0LiuCpaCaPkxPMVEdoBZt vvxPy0ikKNgukHdi8KvuShJfVClBODJRC+IAshsphdPF5lEbENtQF8qJ13R9zPq/dvZn 9ls5SbN61cTEP/cO5T+Mt9stcIEWTVz/2pav+qSDCroajsHfIwRLjOJA+rDZ20Z13M5R 87ulTtd1v/m7/5EWQEIg71qRyzxugrqlmjyzH/m5Pk0f2v5L03qlmtAbxoCqnsbXTrBr eNzQ== 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 q88si3646403pfa.250.2019.05.24.03.26.28; Fri, 24 May 2019 03:26:28 -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 S2390582AbfEXK01 (ORCPT + 30 others); Fri, 24 May 2019 06:26:27 -0400 Received: from foss.arm.com ([217.140.101.70]:39192 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389942AbfEXK00 (ORCPT ); Fri, 24 May 2019 06:26:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 88B0215A2; Fri, 24 May 2019 03:26:26 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 241723F703; Fri, 24 May 2019 03:26:24 -0700 (PDT) From: Dave Martin To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yu-cheng Yu , "H.J. Lu" , Arnd Bergmann , Richard Henderson , Andrew Jones , Will Deacon , Catalin Marinas , =?utf-8?q?Kristina_Mart=C5=A1enko?= , Szabolcs Nagy , Sudakshina Das , Paul Elliott Subject: [PATCH 2/8] mm: Reserve asm-generic prot flag 0x10 for arch use Date: Fri, 24 May 2019 11:25:27 +0100 Message-Id: <1558693533-13465-3-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1558693533-13465-1-git-send-email-Dave.Martin@arm.com> References: <1558693533-13465-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 abd238d..ad3c6e5 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 */