Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp792675ybz; Fri, 1 May 2020 08:38:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLzF508m48apCU5d0z9GiZHlrcD53qz7ba6aW4h5X47f9K27m23EFe+l0dr/kK1eDxUrwrC X-Received: by 2002:a17:906:fcaf:: with SMTP id qw15mr3708190ejb.236.1588347486316; Fri, 01 May 2020 08:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588347486; cv=none; d=google.com; s=arc-20160816; b=X+QNaEg3vEJvPjwo0zbN/DCKuMBjakZlng+X67uqJJ0svhfBJnjK5CEwC7YVwqKFUA GGtkTIjUP0/o8k0RljLOA2cVCAZOCLj7wjaNc0+rMiIOrhUmm/IKlD9iKemeba15I2xY Uln+HGhtEyQfkVDHntf1HC8Afa4mzKWSgWSRsJnWu1NleeTn8npt8W8/iUHakzBGsDO+ ODAp5V6JAy5UqGvA0X7S6i+/dKveFjDn2/ilp4ZSh4xW93TU4mLrV18iGHCNtSl6HCu/ XSgpke0yD1FRNiKOzg97pqTINQaNSe2MnBY7wvMR7gChDRmcfGuc/X0VEsqyGncZzG3M Kd+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=yPzABl1UZciYFkuVr3FLm9damKPCncILlhhsJlPUNXw=; b=JVxuXnMxZUsx1TfXpH786Q1xLgbcsH6/kATSDOb04vgo4okK6Nm9msc7s4+5Hs8Ycz 0HuzF6WtHAZUGS63xiY/MHtR4C/W/jealz1eDt3d2qSpU63ct6q4l/1R24WlD+YjkAyw hwNe3K6XxgY5xnFZxpUjxheOedRnV23KkU2QkKxnu0PMsz3Zv0PLo4WC4wX0/QfExke7 IXQXHZcz6D3rcHps4vaaQYlnSkW1eFNR+VtZZNEogkyw0UfJpZwls3utsXv6Ba7R1qmk 9izfX7RE3T4KNSrvxR4q+yrAL46Rt5EkbhbQHT6xU72TJrOygf6hipfQ/dS72Q6ekvKx 7MWQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si2012374ejc.113.2020.05.01.08.37.40; Fri, 01 May 2020 08:38:06 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729755AbgEAPfy (ORCPT + 99 others); Fri, 1 May 2020 11:35:54 -0400 Received: from mga07.intel.com ([134.134.136.100]:28117 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729192AbgEAPfx (ORCPT ); Fri, 1 May 2020 11:35:53 -0400 IronPort-SDR: om++zbgi8t0E9EUnZB7AyPCLPuQAPCjnj/zFX64x2eaBk/erR7UuRqJ1JoBXAGhiBeaoif/z1l qI08VoMXuFZA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 08:35:52 -0700 IronPort-SDR: eiOWyZIKI7vO19DR7OCFr64BqstCK2TpjbIFtfZ8MAqSSlMpCoVlOTcj7hUJ1GBJabMYzWffE+ Y8JGzvryIPoA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,339,1583222400"; d="scan'208";a="460295055" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by fmsmga006.fm.intel.com with ESMTP; 01 May 2020 08:35:52 -0700 Date: Fri, 1 May 2020 08:35:52 -0700 From: Ira Weiny To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, Andrew Morton , Christian Koenig , Huang Rui , Peter Zijlstra , Dave Hansen , dri-devel@lists.freedesktop.org, "James E.J. Bottomley" , Max Filippov , Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Thomas Gleixner , Helge Deller , x86@kernel.org, linux-csky@vger.kernel.org, Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-xtensa@linux-xtensa.org, Borislav Petkov , Andy Lutomirski , Dan Williams , linux-arm-kernel@lists.infradead.org, Chris Zankel , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S. Miller" Subject: Re: sparc-related comment, to Re: [PATCH V1 07/10] arch/kmap: Ensure kmap_prot visibility Message-ID: <20200501153551.GA673107@iweiny-DESK2.sc.intel.com> References: <20200430203845.582900-1-ira.weiny@intel.com> <20200430203845.582900-8-ira.weiny@intel.com> <20200501084446.GG27858@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501084446.GG27858@infradead.org> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 01:44:46AM -0700, Christoph Hellwig wrote: > > --- a/arch/sparc/mm/highmem.c > > +++ b/arch/sparc/mm/highmem.c > > @@ -33,6 +33,7 @@ > > #include > > > > pgprot_t kmap_prot; > > +EXPORT_SYMBOL(kmap_prot); > > Btw, I don't see why sparc needs this as a variable, as there is just > a single assignment to it. Because sparc uses non-standard defines which I'm not familiar with. kmap_prot = __pgprot(SRMMU_ET_PTE | SRMMU_PRIV | SRMMU_CACHE); SRMMU_ET_PTE and friends are defined in arch/sparc/include/asm/pgtsrmmu.h Since I can't readily test sparc this was easier to put out than let 0-day crank on the entire series checking if including that header in the common header chain would be an issue. > > If sparc is sorted out we can always make it a define, and use a define > for kmap_prot that defaults to PAGE_KERNEL, avoiding a little > more duplication. Agreed. But it seems easier as a follow up (for me with 0-day). Perhaps someone from sparc can weigh in on the specifics of those defines and why they are different from the normal ones? Or even provide a follow on patch? Ira