Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5964242pxb; Thu, 27 Jan 2022 03:36:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8hmJ86QexKRDJ82zG8jDepEAENk/7X4DNQ6fcBOebNhr6hcPL6nWRx0DWd4zDVVZBLjMt X-Received: by 2002:a17:907:72c1:: with SMTP id du1mr2618577ejc.504.1643283386426; Thu, 27 Jan 2022 03:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643283386; cv=none; d=google.com; s=arc-20160816; b=x+FKJx24x30aCe7tql6OnTvvoXz9ZNes5gviItBez6d+/h3XgCxlkDqOKScryjJMVt RaM3bC3tFf5Kngz+gb5P/blb8snZlFs1ygcvlZMzb9yKkZRI9lbQq/zu+jspOyv0mlDW ayKxeubyquNzS1SF3XpN/cX4Js56d2GEcI3qwLviRMV6EfUrvjaA2lBjmmGfuuJnmwls iIsb2P82ywDA84YKiqsf1VKdYeZTc0PJBUmaUfPqxsg23a3Mt4Monet02OQ5nhouE/eL 2B3K6uNsVs6ePikvPD5wLVwu3daKhHC07Yc8UEjoBqJ+gw6RPD+O3ugssuT0A05aH52C t13A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=XO+zXjA0liFTbWGCu5eGdAimDCA6kYbcU91NLB5NFAA=; b=H89UrUu8R5V41jAssxeZPGCITz2uyeO67KCABdcEEr1QtUiMXV86+mjvTQy8IVoQAU 3LaGfBTZa8sknaBFGGcUldYRw0h0rjiRHSJvOtau9aH7NEO0YZKUyOSXl6TJPnIB2GvN CeJdAQf3/XAcFiqIbCVmH/SW8Octb1RWYg12fXafsszKOHCE+u/6n23Xc3lyBj07wa4q 2SFDYG9vuMQWzeLTZU4Z+xWLIIbQmci8BzXVovoTUZCgNacYLmCv2MVrt7TIwI+dDR/j 6YBI/gV/XOJgaFmehivw5njIdBKxXQGh0lLRnpk0GWVj3qgMkixG9viiJaV+LsyId8dX 9amQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si1039838ejl.790.2022.01.27.03.36.00; Thu, 27 Jan 2022 03:36:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233102AbiA0EHM (ORCPT + 99 others); Wed, 26 Jan 2022 23:07:12 -0500 Received: from foss.arm.com ([217.140.110.172]:33326 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiA0EHK (ORCPT ); Wed, 26 Jan 2022 23:07:10 -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 7C3C41FB; Wed, 26 Jan 2022 20:07:09 -0800 (PST) Received: from [10.163.42.218] (unknown [10.163.42.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 658B53F7D8; Wed, 26 Jan 2022 20:07:07 -0800 (PST) Subject: Re: [RFC V1 02/31] mm/mmap: Clarify protection_map[] indices To: Christoph Hellwig Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org References: <1643029028-12710-1-git-send-email-anshuman.khandual@arm.com> <1643029028-12710-3-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <1e06189a-7d69-7d6c-b9b4-3740604c371b@arm.com> Date: Thu, 27 Jan 2022 09:37:13 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/26/22 12:46 PM, Christoph Hellwig wrote: >> + [VM_NONE] = __P000, >> + [VM_READ] = __P001, >> + [VM_WRITE] = __P010, >> + [VM_READ|VM_WRITE] = __P011, >> + [VM_EXEC] = __P100, >> + [VM_EXEC|VM_READ] = __P101, >> + [VM_EXEC|VM_WRITE] = __P110, >> + [VM_EXEC|VM_READ|VM_WRITE] = __P111, >> + [VM_SHARED] = __S000, >> + [VM_SHARED|VM_READ] = __S001, >> + [VM_SHARED|VM_WRITE] = __S010, >> + [VM_SHARED|VM_READ|VM_WRITE] = __S011, >> + [VM_SHARED|VM_EXEC] = __S100, >> + [VM_SHARED|VM_READ|VM_EXEC] = __S101, >> + [VM_SHARED|VM_WRITE|VM_EXEC] = __S110, >> + [VM_SHARED|VM_READ|VM_WRITE|VM_EXEC] = __S111 > > Please add whitespaces around the | operators. Sure, will add. > > Otherwise looks good: > > Reviewed-by: Christoph Hellwig >