Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp53852iog; Thu, 23 Jun 2022 22:14:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s0nHgaH1DjU5MtTrkoLF87e2fM69JEtZktWv0RRrKTSYR/VrrhAJLei55tg+buIshIiU1A X-Received: by 2002:aa7:cb83:0:b0:435:9170:8e3b with SMTP id r3-20020aa7cb83000000b0043591708e3bmr15005384edt.144.1656047657944; Thu, 23 Jun 2022 22:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656047657; cv=none; d=google.com; s=arc-20160816; b=teJxwsXxCFwbaJyIxfv3eI6pKVeAOelUDmUzwXLpiG2741pXHzfUeMcIFtIVtNORPt Jm3pPjNFjbbhzP0pGPCBoP5KXuHqD7KGrbyWMyaHlO12kyZARQnvjJu5j11GADAHnMow ShDhv4geP+7oLi7V/7m/PptlUg0RukInUfIqa5J2YJ7LoH4kmuFjji081gr7uF1luxKh Olzdbw9+QVqBb8vRuwEuWn/WD4mAMLM+Jv398YgxumZONejAKdqeejm9Il6t3Setpkrr kM3aeTOUqlCuosUAItpWq+nDIBOLSd5yLxGju54/J2t3aGPimzI3xhOfQW83PIkhNgqW i6tw== 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=20i464jFDQRcmcNOUSKspwUa6bqXoH9FmrotpkAtY4c=; b=DY6nfpgoYOQ29pK86G+t0von1EQkTzzwZgq5AuFErRPICQEt1b4OHv74KZxhjQVTLg oOG4sEpzONjH0cSbxa17sdEJdvHpid1Hqrf6eD/I4pHJ6zEXWwyDWq/WzB0HFvlO26Nt ljTpg6aHdqyLPtLV0q/YzqpCSQ7vqOja2F2JcDzqqnMF7KDkIhylIn9YIi16m35zoGqj N1KkPbHwu8W2vdK3lI8UXHT9khSlsko4fLTKhueQrBu/iRvF3Qq7sTftc6/T+tFmNfxg VXM1wmS+k5CMXybsyCfI0VwG5+RQEjg30pf2FYqFci79p5ydfa1+5ZKYclsI0VAlHG82 R/tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=st+tFTnm; 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 y17-20020a056402271100b00435b3d1a89bsi2019556edd.576.2022.06.23.22.13.44; Thu, 23 Jun 2022 22:14:17 -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=st+tFTnm; 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 S230463AbiFXFMl (ORCPT + 99 others); Fri, 24 Jun 2022 01:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbiFXFMg (ORCPT ); Fri, 24 Jun 2022 01:12:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16129340F7; Thu, 23 Jun 2022 22:12:36 -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=20i464jFDQRcmcNOUSKspwUa6bqXoH9FmrotpkAtY4c=; b=st+tFTnm+PpdRCXxa+K5x7vb5B R72N8aDZCXlJ6KJzgb+yzmuCts+GeEibm9tVn6M/vW5eMvoUfMxGmIHoP8sQen1ut1CzMeQicil+t AeGBjo6UR11rDKgEJi38MST8WmEmtWCcee1yD8QUR1kmo4TSuiJbnJnTnSbcivjvtbu4Ss17aXwHc v5lzeWw6loI9CgVv8kJJqHHCJjGOCeUhpeaS3IJ/hcngLd48UXd0QGHVu9pWuGAMSj6M5Q6EkMMj/ L7VJ7J7Bm39XO6VnOIkLtGXPk7WzthXyckA4mHE55qtxJrEsgKcEXSnZRobi+UQhLQQ5def5khxAa IPU3+6Sg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4bcN-000Vz9-1O; Fri, 24 Jun 2022 05:12:31 +0000 Date: Thu, 23 Jun 2022 22:12:30 -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 00/26] mm/mmap: Drop __SXXX/__PXXX macros from across platforms Message-ID: References: <20220624044339.1533882-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624044339.1533882-1-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:13AM +0530, Anshuman Khandual wrote: > vm_get_page_prot(), in order for it to be reused on platforms that do not > require custom implementation. Finally, ARCH_HAS_VM_GET_PAGE_PROT can just > be dropped, as all platforms now define and export vm_get_page_prot(), via > looking up a private and static protection_map[] array. protection_map[] > data type is the following for all platforms without deviation (except the > powerpc one which is shared between 32 and 64 bit platforms), keeping it > unchanged for now. > > static pgprot_t protection_map[16] __ro_after_init On most architectures this should be const now, only very few ever modify it.