Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2407237img; Sun, 24 Mar 2019 07:58:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZj3KvAClD1j3JiKEUgneACidxnMmpDNi7ZaaexbELBa1p6mjRtUIEo+sKqBGUKRpGtA85 X-Received: by 2002:a65:63c2:: with SMTP id n2mr18854797pgv.439.1553439512942; Sun, 24 Mar 2019 07:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553439512; cv=none; d=google.com; s=arc-20160816; b=iGz0y4IVO+bDJ25iKaxyKWm6myWWq40yKkrwwntZJnAkhOtonWFKTpxVPLtC0ugJoI 0jlpYWoKeEF+ZkNP/2YHY6lm/flNvVqi3ZM6qtEAPRARIgvZMZUr/VyPpnxJGk9ojRdC MfsRtN7KhL6BUSv9FGxm6nEV34xEJIll+omGerOpnfYCt4R+Jkt13WSKT6vpDQU0SkDV JaIBtLaEDDA/floTp2bOCBZeAcDSVx3/EubKtUbpMlcrhmgDnnb9KqbEVdJYfmaQ1op/ R6q1/yOn5Mo9IfsyD4t9v5ZUZBEA8xnYWuBYAZG8Vvmzh7jGBb/27Eb9kAOkRjxrZTxR yBTQ== 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; bh=fdd5tKB01PyLZMEofguqEQZGFGI3+UTvtZd6hzN5FM0=; b=zRd2Y2qen8wrNafg2i0FsYhWmwqeCfneYhsVax26KgQWSBMToVxvxSJP1sc/tz3L7N C8FbzohXhiQhkYoxYD266SHGFZ1BNnlF+ijfMpECCVj0DgXmqtKsibxCzRs9UoO0QABd /bQF8c2Xt8J8+pupCjWMvlfU6Hj1tCB2wWDCV6jtkHoxoLSHBUx/LvLpN3tgFw4Cu9f1 LnPKFFujrLQNBKff1s/oDxqNlRruarkUEI7npstNYoL07Dk5Tu+0QAUOF2+bYMccx6qU RYwBA5++JKS7ZjRiI+eUFxhFvdxpI2HBEBnq+PBYZbOce47RONWpv0KIMHKTYr1BgYZ2 sIGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg1si11855555plb.118.2019.03.24.07.58.17; Sun, 24 Mar 2019 07:58:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728768AbfCXO5S (ORCPT + 99 others); Sun, 24 Mar 2019 10:57:18 -0400 Received: from verein.lst.de ([213.95.11.211]:52885 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbfCXO5S (ORCPT ); Sun, 24 Mar 2019 10:57:18 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2F1A568B20; Sun, 24 Mar 2019 15:57:08 +0100 (CET) Date: Sun, 24 Mar 2019 15:57:08 +0100 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , Atish Patra , Paul Walmsley , Christoph Hellwig , Mike Rapoport , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Christoph Hellwig Subject: Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany Message-ID: <20190324145708.GA3355@lst.de> References: <20190324110804.68555-1-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190324110804.68555-1-anup.patel@wdc.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 24, 2019 at 11:08:29AM +0000, Anup Patel wrote: > Signed-off-by: Christoph Hellwig > Signed-off-by: Mike Rapoport Huh? I don't think this is from Mike and me. > +unsigned long va_pa_offset; > +EXPORT_SYMBOL(va_pa_offset); > +unsigned long pfn_base; > +EXPORT_SYMBOL(pfn_base); Can you move va_pa_offset and pfn_base next to the swapper_pg_dir declaration? Thats where I move them in my current nommu patchset, as that allows to just have a single CONFIG_NOMMU in mm/init.c. Otherwise this looks fine to me.