Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp52682iog; Thu, 23 Jun 2022 22:11:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1svG7ibw49E6/ZWi/ebykJU74zPTeeUhelAD8wMdRvSCeJ2FvoFCOPFycqSEiQ4mx949PPv X-Received: by 2002:a17:903:22c3:b0:16a:5850:5773 with SMTP id y3-20020a17090322c300b0016a58505773mr6733225plg.127.1656047517095; Thu, 23 Jun 2022 22:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656047517; cv=none; d=google.com; s=arc-20160816; b=pHh8UxqhA72bdKEOctRWc7uC6Fw4soAfTUT9Sy6HKrkox9xBlFubudgDdVeprCH7hh w7VEorUhMq33VCEzVFkC98MtiHoIWPSrNNeh5EDtAfKZhxIM8IvTXP6gTyy2vpwYr6aO dbABNN9beNNUpxhVqHPsakfCG499sMVrVSnYdqA6WrkgdN2YZx81ZE8K0q5oTMxzozi2 sHCeg6oZZOHAsGCj3uR2lHt4y1f8fCFAwKZGjvo4YF0VimKAjzrl1kHbMikmLn1H84Cp azWex24WYVstJPG493dUUu5A6RCy2PC+1plYXwuKLeKJ/MhADKXjTR9psijDV9KDNt6/ Du9g== 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=oy8Qzv7ZwesdQ7gZcxE/IliyoXQVuCtp5qw3DJ66UmU=; b=PNw+ZCxJUghHbBCq+es46d/2WJrpW4fAGj32j5lZfsWblC1iRa3Iax1cIcxnsZLutE sg5vuBU+hrAbJ7J9zvA3aEoJsjWMwfQCC+NyPFeJA8mTvcP8XRpQbnjPtytB74SzdZD2 zxE3KarD2P/lW1TuBD3qIeFgOzc908D2UU4k4uSOKwXlbpx2OWYc1TjagVJyRu3p6V9H 1BIKF20du/ILwp8v8KULq5VJPyasbyi9mi9Tbtqw7201XqRa2seKpoSpZH4CuiULE+H9 bfpLFBdhbGpUG7FTLbFB2uIKCz13INQ55axChbRPD+iae68B/PwKhVMUyy3n2y+40D/B SBRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tYEY6TDJ; 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 f14-20020a056a00228e00b00522990cab89si1855339pfe.133.2022.06.23.22.11.45; Thu, 23 Jun 2022 22:11:57 -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=tYEY6TDJ; 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 S230283AbiFXFLH (ORCPT + 99 others); Fri, 24 Jun 2022 01:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiFXFLG (ORCPT ); Fri, 24 Jun 2022 01:11:06 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCFE52F64B; Thu, 23 Jun 2022 22:11:04 -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=oy8Qzv7ZwesdQ7gZcxE/IliyoXQVuCtp5qw3DJ66UmU=; b=tYEY6TDJRXfImJFb/TegSvBB52 c9s1q6arcG99qLu14ih4wheulphZK3pt+18fSMiLmXsL2oDuB7dPvXw7yuFMgzGpHbHvusQBMskHB MEDDM/XjG+R7Lzh/3+bIAU/402+xsYAByeCBVOA0I8WhpORdaOiymIQlPUyq4X9KtlBx1l3ssAZWz 5kVdXI840LT9CyXBPW9XnEObiktYQInNMEYJCgmlVRdPEgXlKUePxM+/UFR7JkbhiRuzBlDVzuO7q 97wrFo+nfpajUACMGdBzXCRcH0frNcML2+64mW5MNr8axsa789mj7G6nXr8zjaYQMjHBPDkFr6VGZ mk0T0xhA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4bat-000V4L-M8; Fri, 24 Jun 2022 05:10:59 +0000 Date: Thu, 23 Jun 2022 22:10:59 -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, Paul Walmsley , Palmer Dabbelt Subject: Re: [PATCH V4 16/26] riscv/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT Message-ID: References: <20220624044339.1533882-1-anshuman.khandual@arm.com> <20220624044339.1533882-17-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624044339.1533882-17-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:29AM +0530, Anshuman Khandual wrote: index d466ec670e1f..f976580500b1 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -288,6 +288,26 @@ static pmd_t __maybe_unused early_dtb_pmd[PTRS_PER_PMD] __initdata __aligned(PAG > #define early_pg_dir ((pgd_t *)XIP_FIXUP(early_pg_dir)) > #endif /* CONFIG_XIP_KERNEL */ > > +static pgprot_t protection_map[16] __ro_after_init = { Can't this be marked const now?