Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp57803iog; Thu, 23 Jun 2022 22:21:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vb+rcaWulN6ulLuMLRj5DthXx89T89NPW40hR+jOSjG3NErPFV4TvgE87nVfwdR/iAdy5q X-Received: by 2002:a17:907:1b1c:b0:6fe:f1a9:ef5a with SMTP id mp28-20020a1709071b1c00b006fef1a9ef5amr11653624ejc.233.1656048097583; Thu, 23 Jun 2022 22:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656048097; cv=none; d=google.com; s=arc-20160816; b=nHM8mmcaFd55e397DMizi16yX7R8vwagGa2nt8nTcD+5ZCHuXQCMGTMxznSMTWouwy yxqxNJLeL88FfINMdAMd2J5IxR9Xtk104TtOQI4ObRJ93ApwIADUL0lpJ1uzIxtK2Vrn TXOmCfZJfePAo6YGLMfKIzA47HojsR1JEoycL8rM54gzf+UiH6mBc8OIz34pHddUDhO+ EzuygVUbPC1MuUfBjUB5a42TZIFAh0kcWRaAxlCqABddd1mlQ55WotWhXhFhU3jMZgF4 8Ob14tp11CsLXYFZjJi56ccFdk5DzgOHGWp0l8EgSTBcr8u1YQaHhcoDXlLgN8BbZpCu eRKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tZ8LkmyBAtnykRzYGYg49Rqa9UPNSMXU6tU+2gOJDvM=; b=Uhw7d8Q4ajJnDPG9yjUjkDnnu3eNSBLz43+V1mSrgruhBA5fGeJ646gwEqIVK9pten JXZX9aIRtuNj24VfMu00SRkO8aZ9dFPYASCba0hszYdS1ZkuBpC4fWeMabyhzfFQGJBB kgKcF8JX/a2qsjUP21fOevJ/qedp+0kiB43GNzootNHptkrhr7fZPOuj9cRyyUXL3x6+ JfZMKnvcSpzHSddFRfhVzX3/Ze6823RDtWFfMI+HVB1ru6WOB+M91xebWPn80wEBnSaP mWoY9fSfvqefd7I1Nou/3/YFjdq57kQSrSuU8ZNS/jv6zXEGfsKdYolkbMCbKt0TBEKC BWUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cCUlw5tM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056402084e00b004356df259b4si2284769edz.361.2022.06.23.22.21.12; Thu, 23 Jun 2022 22:21:37 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cCUlw5tM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbiFXFJq (ORCPT + 99 others); Fri, 24 Jun 2022 01:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiFXFJp (ORCPT ); Fri, 24 Jun 2022 01:09:45 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD292BB0C; Thu, 23 Jun 2022 22:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tZ8LkmyBAtnykRzYGYg49Rqa9UPNSMXU6tU+2gOJDvM=; b=cCUlw5tMKjA7tpyeYmlc1ERkJa ckf4+aN3hEH0XCskIGjCoiOXbG/eaOHif+X+4wD4wUoGeeukP8mi+q13hfpsaYp4g0soi6gzXhEx1 PpezxbivaQbnsmkilzPYqbCwMv7DF8gmG62CU1v84YZsYJIxP7ph/D9ymTFr2wg7GPJPzhYsTfT2o FtgxLrKn5v8y5kF54+4wuLTtWHxvlH+E/pRlSDlDD9a9kT1sJ5kvyaKgOkvO0HAWSyrXGUVOcgrsN dgSjko4uGfXPAbLp5BBlssWPJVsa+fsSvw8+d2FvD0U2hguXGnTjZkoAPYnfBeCAHIlB4+9lYA/SH DDooLKwA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4bZb-000UJf-9K; Fri, 24 Jun 2022 05:09:39 +0000 Date: Thu, 23 Jun 2022 22:09:39 -0700 From: Christoph Hellwig To: Anshuman Khandual Cc: linux-mm@kvack.org, hch@infradead.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 Subject: Re: [PATCH V4 02/26] mm/mmap: Define DECLARE_VM_GET_PAGE_PROT Message-ID: References: <20220624044339.1533882-1-anshuman.khandual@arm.com> <20220624044339.1533882-3-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624044339.1533882-3-anshuman.khandual@arm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 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.