Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2564038img; Sun, 24 Mar 2019 12:15:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHBkpCp8jfF4PQ4irnPR2y0AvQNUjN6bsiOOpb9NvVJZAl1zJv9gvSftADOkE6utBsiXNZ X-Received: by 2002:a63:f544:: with SMTP id e4mr19839284pgk.145.1553454946238; Sun, 24 Mar 2019 12:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553454946; cv=none; d=google.com; s=arc-20160816; b=HYn/Zv72KSq3jam1DU5A/D88FgGmhnM94jVQcelEuP6SnRm27KtVj/hjQyKx3c6FDe +xT/+/SujFA4g8Klq6EY/SgzU1KblN7aZk7R4q0QQq3sO+SBkR4p3x/pJ5YJq4yOarJ9 MNgecsvXqJyDk6wtM0CHSkpIGlwD6j/Abbz4SAXss2FtLoMXCFjFZYOHGrf8UfZqivxb enTLFa0UQUiRpp0kwq0f3ULg4rV4eY/VGsohoOgkVko5rKfJPy/IIwQubjqgYkzs9dfx 95W+Z4s+8qHE6uFFPflpaKilaeiCVlnf+iYlHHK8uMxExeI4Pim2kezcw8Q6pYNLZmOS JwGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ixctylaAjKIf8DjKb9Dh0bD+cKnaYTSosDf/QunznZE=; b=qakogirCoAA/hAH/pddJlXck6eI/yOM8wC+OeWOq3oQEQud7NkJ4CIMkvwQ+uE6mZD NCTHrJiJ7wcnZTbwElgiB4ysdOgi0JTHUHPOJmAH7Vd20m4uYWKQrqDdmyhb30vJT+y+ AvaZodoBfwmj+Vd8nh+u4V7lUNyf2xnLAQm9M6kdMbmvPdJApZ6YbkT1Cf0KKEAt8cIp Rs1L8WyfmmrtvGYzZ0eggyJTtRvZl+pHdR1S52aYQvjaEHWtAoMm5TMVHrx15xRjRpOQ mZyluWwA/6PJxIo68wGYg5wPyvmgkJcwlM6UT2c3UWhrY2w1Uk02mOuAtyhZ9Fy41+WY mgCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@garyguo.net header.s=selector1 header.b="HZ/jpryK"; 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 c127si11879378pfc.256.2019.03.24.12.15.30; Sun, 24 Mar 2019 12:15:46 -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=@garyguo.net header.s=selector1 header.b="HZ/jpryK"; 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 S1727249AbfCXTOq (ORCPT + 99 others); Sun, 24 Mar 2019 15:14:46 -0400 Received: from mail-eopbgr100133.outbound.protection.outlook.com ([40.107.10.133]:43198 "EHLO GBR01-LO2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726347AbfCXTOq (ORCPT ); Sun, 24 Mar 2019 15:14:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=garyguo.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ixctylaAjKIf8DjKb9Dh0bD+cKnaYTSosDf/QunznZE=; b=HZ/jpryK0HcDomT0jJtTMnSWOjpTXfoEOXDgBgXH4Sh4GTBBkGFMv09LVSmEXbF1rref8ltx4EKWVz1heeB57A513D0fTmll30WJO5mQNjWrrAWfyJGx2XGXgMNiRiOcRIMv7RZ0+G4k+li2T/YmTnYxgDBo3Jf9a30LJqu/AeM= Received: from LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM (20.176.139.20) by LO2P265MB0207.GBRP265.PROD.OUTLOOK.COM (10.166.98.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Sun, 24 Mar 2019 19:14:43 +0000 Received: from LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM ([fe80::ed34:1290:4306:3157]) by LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM ([fe80::ed34:1290:4306:3157%3]) with mapi id 15.20.1730.019; Sun, 24 Mar 2019 19:14:42 +0000 From: Gary Guo To: Anup Patel CC: Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Christoph Hellwig , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" , Christoph Hellwig Subject: RE: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany Thread-Topic: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany Thread-Index: AQHU4jHpL1gWnGWPrEKT6h8SWH7WMKYbJa+A Date: Sun, 24 Mar 2019 19:14:42 +0000 Message-ID: References: <20190324110804.68555-1-anup.patel@wdc.com> In-Reply-To: <20190324110804.68555-1-anup.patel@wdc.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=gary@garyguo.net; x-originating-ip: [2001:470:6972:501:7c02:aeab:5cad:5284] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 91ce442b-9607-45a7-23e6-08d6b08cf877 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:LO2P265MB0207; x-ms-traffictypediagnostic: LO2P265MB0207: x-microsoft-antispam-prvs: x-forefront-prvs: 09860C2161 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(136003)(39830400003)(396003)(346002)(366004)(189003)(199004)(13464003)(68736007)(6246003)(53546011)(33656002)(476003)(99286004)(86362001)(229853002)(446003)(97736004)(71190400001)(2906002)(6916009)(46003)(9686003)(106356001)(102836004)(186003)(11346002)(71200400001)(486006)(508600001)(6436002)(14454004)(76176011)(105586002)(53936002)(256004)(5660300002)(6506007)(7696005)(55016002)(25786009)(4744005)(52536014)(54906003)(316002)(7416002)(81156014)(81166006)(6116002)(8676002)(305945005)(8936002)(74316002)(7736002)(4326008);DIR:OUT;SFP:1102;SCL:1;SRVR:LO2P265MB0207;H:LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: garyguo.net does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /hHo4jVJF4rc51EOKThJb4OxnK210wqh7FJJySkJ6urwmciIBebi9/ZwwAVPY+7idS1T77Sp71DjTXzCABkjfxkrAQmrZFxz2PG0QkGgIoBnqipIczByIn4C7PQm50BRDcOe7VJLi+nLnbvceSx232RMHLVjwJfNesp80iMIk/algvZV37g+bQAAmAKRYWjmbZTkZX/AcunDd7EHs8OPKh4hBMyne5Gp0wHVhhVv9FwOoBiLeJ8drfD3piTcO9eiQgKy7dLMGLImnm4Ivm4wTuPPwRQFM4Ufb57cAPeGXfG9vBmfwGo4gJbbRUTxe6FJZagSDseZXciUx1jVv2/ldD2TSpzH0BfeN8qFH31Q0qrYw7oZxjUk2dvLR7jF2cM2aJcIzxrLaF0Fi8xnZWDUdmd8OYGsanhXbZrQtx/hdT8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: garyguo.net X-MS-Exchange-CrossTenant-Network-Message-Id: 91ce442b-9607-45a7-23e6-08d6b08cf877 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2019 19:14:42.8890 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bbc898ad-b10f-4e10-8552-d9377b823d45 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB0207 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: linux-riscv On Behalf Of = 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 ; Ati= sh > Patra ; Paul Walmsley ; > linux-riscv@lists.infradead.org; Christoph Hellwig > Subject: [PATCH] RISC-V: Always compile mm/init.c with cmodel=3Dmedany >=20 > 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 th= ink it was there solely for the correctness of setup_vm. As setup_vm is now= in mm/init.o, the old CFLAGS probably isn't needed and should be removed i= n the same patch. Disclaimer: I haven't tested it.