Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2824643img; Sun, 24 Mar 2019 20:22:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK7ZS2XLCqEsXwmM0fsYS690+WnSsDDirbGCrrnbmhe4oMLqHxmXSWFySqhKaJaZhPCZZc X-Received: by 2002:a62:e411:: with SMTP id r17mr21753860pfh.127.1553484157524; Sun, 24 Mar 2019 20:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553484157; cv=none; d=google.com; s=arc-20160816; b=IkhVqv0BYl0KpoTmXH/0y8JICm1dCYfoGY/HPhyjObmUclwwKB/sQobiyQhkmyKVqV yIcHInhyo7A3gRG+w/fv9xu24c8WbDY7dJI6rbXs0COrn7Nu+VJjcnQ6SOqGtnNZDjhn UXzYksdrh/EOlTt4VE2MtsJT8qq4xzgLmUXhl3X8Bkoy4fONdnytK+m1tLPt0M7MKWHB 1GLFyb+Eh9YIAv5axjs6wPbN/KYyrVt0CzOCf66kbrjg1ZwNKpZHLqqmIfWPQQGHLe5s 7QBVhRB/P2UbNgNbQlRGFeqoGnllGHEUTE3HTGxNmeyWI/ra4LK3LNfEh+640yIWpgDz 2R0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PZL5T3XpqPXxaGPXLVF+FDWkhfoO8E1V4Dhl71Xctkg=; b=0BtFU29cd291efJzFFlUmeVuuqAMrAnJ+7X4HMiGKVo/Re4yAQqSVKPhjMEXx25OGM C3z21TBkIRGqALEaljI5uC6muZQMjKb74cyXS0+pQWCZ5zSVImbuFmwmGFSsJusGifTJ PAw3aditb07Os2hlRPgZv5dPeJH5fnZ6Ph/xo2tpSqKLaJFyb7PiBEQ+ub8v+qacheMY jnzUhBiK6AA7RWNcI2r4+krsdRXXqn5nf+aknNcRo2jWttqK8a4HAwHQRlFj5CNzKChq jYcwCbIXjZ8+67on28BL6A+QhO/4LBnD+VTWP91Dqf988sz+Rsh7x8YmAVOPeMvmLYld HjHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=xGeJ7KCS; 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 g11si12808102plo.125.2019.03.24.20.22.22; Sun, 24 Mar 2019 20:22:37 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=xGeJ7KCS; 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 S1729429AbfCYDVo (ORCPT + 99 others); Sun, 24 Mar 2019 23:21:44 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37563 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729310AbfCYDVo (ORCPT ); Sun, 24 Mar 2019 23:21:44 -0400 Received: by mail-wm1-f65.google.com with SMTP id v14so7413238wmf.2 for ; Sun, 24 Mar 2019 20:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PZL5T3XpqPXxaGPXLVF+FDWkhfoO8E1V4Dhl71Xctkg=; b=xGeJ7KCSeWkFGa8Z4bFykhqJwVXmpeEsst/o+6N+0nBVzu6n+UE43qpjmrQusjaHcM LP0So7k7B4O2u+/WptUiR8w/V0eUJIPSN4VztX4Xeg+roJNlqun7DRVfHD8xqcoroK0/ LxdWOYk4690SQWSvbqLhctlNFF5q8hobU2grqUMBs+ZoCF1bWZDvVFgRccCpYCaolmNX W5A7BxtcQ4E2CD9+/OYAbmhw9daMx/J0zrRgQBJ16kOse3Z9XRveBBGMWD+v5RMoyKMO gglROWde8p+mPuOL94xHN06epxIGD8G8t605unp370kFdwiOd+xxUiZsj8vA+jkNvv5f viuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PZL5T3XpqPXxaGPXLVF+FDWkhfoO8E1V4Dhl71Xctkg=; b=Q2D6NAatSOrhg/Cfmd11ii0Z3OeLvX9xbMxrXC/W/G8HJYiTpZt601zMUEbXZl5nwL iBvOteC691ryWBek296kNgZEGhwUKoG8Eh8kfkKZLfDtrkSzg06SbtZfJpQ3mcV9VdAK 7RI6qBZvexq2w3zBd5vr3iD+Afyn+7+eLDFeE0Jd+8W2STUulqQ4AfrP38oEQ/JL7Wkg AEjo1Tfmas0g8mQFe4+kqZFlV15CQ7OL3CuaV3AfEFyvHxyNpVsu0D/oaglif/nmlFHK oLl/AarGWq8iBKdvGA48+8WNbRTErdi3R3V70v0ddgT0fXtQe30QHXPxWg4Hi1ghCbjF RrMg== X-Gm-Message-State: APjAAAV26csw1EMX6Jk0M/tsAPNTPcOnewRfX5whOu9lERRbQrPFLLzX BPu8GzlgMB/Gy6kF6aLdhGyFKy9Sj62SG6BxllsxyQ== X-Received: by 2002:a1c:b455:: with SMTP id d82mr4241588wmf.153.1553484102425; Sun, 24 Mar 2019 20:21:42 -0700 (PDT) MIME-Version: 1.0 References: <20190324110804.68555-1-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Mon, 25 Mar 2019 08:51:31 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany To: Gary Guo Cc: Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Christoph Hellwig , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 12:44 AM Gary Guo wrote: > > > > > -----Original Message----- > > From: linux-riscv On Behalf O= f Anup > > Patel > > Sent: Sunday, March 24, 2019 11:08 > > To: Palmer Dabbelt ; Albert Ou > > Cc: Anup Patel ; linux-kernel@vger.kernel.org; Mike > > Rapoport ; Christoph Hellwig ; A= tish > > Patra ; Paul Walmsley ; > > linux-riscv@lists.infradead.org; Christoph Hellwig > > Subject: [PATCH] RISC-V: Always compile mm/init.c with cmodel=3Dmedany > > > > diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile > > index eb22ab49b3e0..7307609d405b 100644 > > --- a/arch/riscv/mm/Makefile > > +++ b/arch/riscv/mm/Makefile > > @@ -3,3 +3,5 @@ obj-y +=3D fault.o > > obj-y +=3D extable.o > > obj-y +=3D ioremap.o > > obj-y +=3D cacheflush.o > > + > > +CFLAGS_init.o :=3D -mcmodel=3Dmedany > > I think you should also remove CFLAGS_setup.o from kernel/Makefile, as I = think it was there solely for the correctness of setup_vm. As setup_vm is n= ow in mm/init.o, the old CFLAGS probably isn't needed and should be removed= in the same patch. Disclaimer: I haven't tested it. Sure, I will remove it in v2 patch. Thanks for catching. Regards, Anup