From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4423DC43381 for ; Sun, 24 Mar 2019 19:14:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE70D20823 for ; Sun, 24 Mar 2019 19:14:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=garyguo.net header.i=@garyguo.net header.b="HZ/jpryK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbfCXTOq (ORCPT ); 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.