From patchwork Wed Dec 11 15:41:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 181253 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp700600ile; Wed, 11 Dec 2019 07:43:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzJrA++WHXMJlTmM/uVk3nW05vXycmhGZ6uiAmGhH99RvFp1vSYMk/xFkQYvCfT/d4ECMqG X-Received: by 2002:a05:6830:1d6a:: with SMTP id l10mr2837523oti.233.1576078982057; Wed, 11 Dec 2019 07:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576078982; cv=none; d=google.com; s=arc-20160816; b=THkyLejUJvKDzrWP/YHHuk9WV2aKCXxltqEXb1u1cQsq21Fy/ugYYdaTOR5wYmg2wh ltcmYvhDRfDuqkzxaVHoz3D1g62Ck5MGtk/Vri9ZicbxWy0R4lJoEJb55BupbsCZ+KB8 34wu2A+AZbLeZZHVwlnki10oISffAMRDuxwboQILhlPPBxojRFtdg7tR/cBdbktv8Ovz cLXdjQ0v6J7tE+mUt82j3vT4V7wnt4bU0/XnlyI7onBevee5YGtGozx5cPFmWRtnou8y FgXp1n+QKzqhQv6EPMT5TB+bd9v7tCvegK2d2Wg3ZI6Mdf3Dfz0epS7/zu8W0zhPK86y 2mig== 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=fDKPby1LN20X4I8FeowWRVqj1zjgzx4i4vrwXMKUSqY=; b=NmBj/phBYoSHwMN1Gq3Pj5FJ8iQW7/+kFft5fnLB2Y/COo+AVFwvM4zWq4enzDcwkA 8I7IT7yK7zITVtDlBitJYQInjv7JIDeWIxRi5On8s+LdAWrmz/SA0OXPZxAPhLVx/x+l BSoHO0323CeX/YSj7gBJ3z3BzliK631ZIyZST5LPhqcrVnB9IHNIIemdZvDNwT11SRU1 gHxc1QJcus8iVG4hfni8Div5v5mVAkADlmA+6Dhx76iGCOBVs7ht4smEJDDkn/2F1xJk nSQn70qR1qZYP1ZYkx10dbt4IbfgPmhGMkQPzfkDn8EMqa3vRNbBFNA04aDSqeYmwoTM jWfA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si1371619oiz.271.2019.12.11.07.43.01; Wed, 11 Dec 2019 07:43:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388697AbfLKPnB (ORCPT + 27 others); Wed, 11 Dec 2019 10:43:01 -0500 Received: from foss.arm.com ([217.140.110.172]:35414 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388684AbfLKPm5 (ORCPT ); Wed, 11 Dec 2019 10:42:57 -0500 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 8A27B1007; Wed, 11 Dec 2019 07:42:56 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D7D073F52E; Wed, 11 Dec 2019 07:42:55 -0800 (PST) From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Paul Elliott , Peter Zijlstra , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , Marc Zyngier , Eugene Syromiatnikov , Szabolcs Nagy , "H.J. Lu" , Andrew Jones , Kees Cook , Arnd Bergmann , Jann Horn , Richard Henderson , =?utf-8?q?Kristina_Mart=C5=A1enko?= , Thomas Gleixner , Florian Weimer , Sudakshina Das , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Dave Martin , Mark Brown Subject: [PATCH v4 03/12] mm: Reserve asm-generic prot flag 0x10 for arch use Date: Wed, 11 Dec 2019 15:41:57 +0000 Message-Id: <20191211154206.46260-4-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191211154206.46260-1-broonie@kernel.org> References: <20191211154206.46260-1-broonie@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Martin 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 Signed-off-by: Mark Brown --- include/uapi/asm-generic/mman-common.h | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h index c160a5354eb6..81442d2aaecb 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 */