Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp95426iog; Thu, 23 Jun 2022 23:26:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tDElavd65GSbpljXWa+uvcvucOBXY+zIqxF5hUx2qW+R7JjwUmu330h48t42qRTEiPSSbi X-Received: by 2002:a17:907:16aa:b0:722:d6fc:1341 with SMTP id hc42-20020a17090716aa00b00722d6fc1341mr11353408ejc.640.1656051991404; Thu, 23 Jun 2022 23:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656051991; cv=none; d=google.com; s=arc-20160816; b=sh+JNBZu/PB1824wl/u8b/jNFi1hljxQYTmw/R2GjoTaK8PiTlZQZ/Nn7ZUntlf/8C ZfUYUywSahfDrvTRk90sF2/FVpU3/SRX80yaTT3u/mvcAGSnk8CfJ6UFe4EM06Vp9UYu 98oJUx2DA2msz28vu+pbTSGHtCSQ/jHeIzamNUTPWHBAFKkXxFeRZDsQVcLEQA6Tps08 7gfwrIpl5KpVLPpMKBAy+ufy5G2mBJXPUljerkXv07wGl/D0K+YogR6Zv1DxYlEqNOeW 6QFS/07Us57SAY/pDwAIh3/LLuEHODuxNya7r5JOdFhhTNz+XgPT7zORoMCBX4TTjsnT vWPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=/kOj2Z5hEWWJZ/ApemvhIuwIvlz9aduycEJCrkeijwY=; b=yWSH9RO3jzudld0CrHKDqNPMYsSly5eKLhnN2u2fUw6tJGmuYPjdQQeaWT/miJwagg VP3kHWa+BGsnjpQkUFurN5ynKJBvqNx47e7PctnBUfQJDVmJTLKIjEUitnOcqnxNBZ1H 4Y4ix5x4XjIiDTdPxkHP7AEbOScMtnrFuVn7jyhITYZKSMOVMPyxwj5l+r3KAtiwUuET gMqjBhbPR44WeJCu4N4uwxwa60gvpkuEPG8FqAr5Uf/0Oxsz8phJRW/rsNqy7YRy/jQC u0cGwBgK+iWxx5hXjwHo/XIQZYPyrVJipocNmJgWkFhpUFJgSRYgyJpBtb/RLyjDObyz vTug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a056402280b00b00435dad43328si2620644ede.569.2022.06.23.23.26.06; Thu, 23 Jun 2022 23:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230172AbiFXGKA (ORCPT + 99 others); Fri, 24 Jun 2022 02:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiFXGJ5 (ORCPT ); Fri, 24 Jun 2022 02:09:57 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D679DFDA; Thu, 23 Jun 2022 23:09:56 -0700 (PDT) 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 1D62B11FB; Thu, 23 Jun 2022 23:09:56 -0700 (PDT) Received: from [10.162.41.7] (unknown [10.162.41.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0BA523F66F; Thu, 23 Jun 2022 23:09:48 -0700 (PDT) Message-ID: <4a20d826-af0f-0d2c-162e-8797c2603ab1@arm.com> Date: Fri, 24 Jun 2022 11:39:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH V4 02/26] mm/mmap: Define DECLARE_VM_GET_PAGE_PROT Content-Language: en-US To: Christoph Hellwig Cc: linux-mm@kvack.org, christophe.leroy@csgroup.eu, Andrew Morton , linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, x86@kernel.org, openrisc@lists.librecores.org, linux-xtensa@linux-xtensa.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-parisc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-um@lists.infradead.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220624044339.1533882-1-anshuman.khandual@arm.com> <20220624044339.1533882-3-anshuman.khandual@arm.com> From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,SUSPICIOUS_RECIPS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/22 10:39, Christoph Hellwig wrote: > On Fri, Jun 24, 2022 at 10:13:15AM +0530, Anshuman Khandual wrote: >> This just converts the generic vm_get_page_prot() implementation into a new >> macro i.e DECLARE_VM_GET_PAGE_PROT which later can be used across platforms >> when enabling them with ARCH_HAS_VM_GET_PAGE_PROT. This does not create any >> functional change. > > mm.h is a huhe header included by almost everything in the kernel. > I'd rather have it in something only included in a few files. If we > can't find anything suitable it might be worth to add a header just > for this even. I guess should be better ?