Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4960422imd; Tue, 30 Oct 2018 09:52:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5ceLjo2UdGGhs0i4gBIG0UrMnic4zfWXfOoz51AK7PM4TP4JJP0pSeZZFfvBtyLGxr3iE3H X-Received: by 2002:a65:4049:: with SMTP id h9mr1991232pgp.304.1540918372191; Tue, 30 Oct 2018 09:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540918372; cv=none; d=google.com; s=arc-20160816; b=ECjv005//VWpBSx+8LqYNvkJtnINh0qzd4+Y1ndvfEXEVp5PYnW0oJfWgCWu8xHBvy wH/3pjdykYyYJfHUolrGvvPHliHEUdV3YDBtMzCu+0VpBqeyWJbotbgxFOE7Ek1e2RwN 2F64V/eHX4oOTXsNiC4C8kO0BCAHqLuCC+EILATTTjfW43TK1lzwF/w41o/1cccE9EhW mMbyQ3+vSCqFrzvzEqnHU2/l0jEEto6tmmGuaMuDIg6HNAlAad7SH4Jj9GzsY6dhjBfV xO5/8KBsBB/g7Q4qB/znde0fc33QzkmcL1qVMc2P2+URPJUb0eprEZDIT2d/AT+8Qhtx RQsg== 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-id:spamdiagnosticmetadata:spamdiagnosticoutput:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=DLYMVodelq1B1QQLdn60/8zhQDxyM9FKxAOqyuaYSHI=; b=0UwP81x1YwyRnqW0yZA+p8CCKzBNCWLQMjYLGwidh3Z0luuIEbrnL3/jwYNummC1Ws 1hZwaeCTDWXUerYFZ9PuG1r2KMKW06QDRKfhWsjmgOVHIbCbAWIczSEZyCvuLWeFGGR5 BdKdqc0uA2SpI4SgGGy6eJHT1bB5oNSAqT9//Lpcd/0nXpiCbHH16nif8xT/6Jn7mFcX b8q58I+nsgj+xHfFTmO3ReftMAMus2/c0hsPemwJDqyYDwRkOKQpl3Zv/5z+aL7ogm+a VtkCcdL6tuNRgJL6HHCQ9gQ1fJ9IDdabNijVYGjewWhVFFS3PKTB0Qsb3r9fd2HbVtVv DpgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=QxXIUqpN; 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 q21-v6si3142023pgm.534.2018.10.30.09.52.36; Tue, 30 Oct 2018 09:52:52 -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=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=QxXIUqpN; 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 S1727876AbeJaBqT (ORCPT + 99 others); Tue, 30 Oct 2018 21:46:19 -0400 Received: from mail-eopbgr730136.outbound.protection.outlook.com ([40.107.73.136]:13984 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727561AbeJaBqS (ORCPT ); Tue, 30 Oct 2018 21:46:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DLYMVodelq1B1QQLdn60/8zhQDxyM9FKxAOqyuaYSHI=; b=QxXIUqpN/6/J9IAo3vi37iY5ZerpXBEuhACLfCtOyHlHrhy3U6Vq937eEwnhV/94pVqanhHCin3gF7CzFLs+Jaighhow482eYM36VEL+tIrATuRGwL1bG1LeQeCjHjyuGLcCGvmGecrYkP63EFx2mIz/ri9fXtIiwHIo/D8+0Ds= Received: from CY4PR2201MB1272.namprd22.prod.outlook.com (10.171.216.146) by CY4PR2201MB1240.namprd22.prod.outlook.com (10.171.216.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.19; Tue, 30 Oct 2018 16:51:58 +0000 Received: from CY4PR2201MB1272.namprd22.prod.outlook.com ([fe80::ace0:f12e:c2a0:dc23]) by CY4PR2201MB1272.namprd22.prod.outlook.com ([fe80::ace0:f12e:c2a0:dc23%8]) with mapi id 15.20.1273.027; Tue, 30 Oct 2018 16:51:58 +0000 From: Paul Burton To: Masahiro Yamada CC: "linux-kbuild@vger.kernel.org" , "linux-mips@linux-mips.org" , James Hogan , Michael Ellerman , Benjamin Herrenschmidt , "linux-kernel@vger.kernel.org" , Michal Marek , Paul Mackerras , Ralf Baechle , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH v2 1/2] kbuild: replace cc-name test with CONFIG_CC_IS_CLANG Thread-Topic: [PATCH v2 1/2] kbuild: replace cc-name test with CONFIG_CC_IS_CLANG Thread-Index: AQHUcFRQUdRvUBuRmUqUi+ZWeLGgeaU4ARIA Date: Tue, 30 Oct 2018 16:51:58 +0000 Message-ID: <20181030165156.k6blbpbxh2fmiiay@pburton-laptop> References: <1540905994-6073-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1540905994-6073-1-git-send-email-yamada.masahiro@socionext.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR04CA0107.namprd04.prod.outlook.com (2603:10b6:301:3a::48) To CY4PR2201MB1272.namprd22.prod.outlook.com (2603:10b6:910:61::18) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [4.16.204.77] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR2201MB1240;6:F4JLfAh/UD/LNIAd4rfY5JLYnnGwCcpEfiZq5TkDdJXZT3Fxg4a67Fu6dmd5SvTwj66HYyq9IluLkW2yQvdtB5A/nt7AFSqyBAGMcdmiwS7E8+TNzyE4rPfjomO27grMG60+s0CgKNmHbwq9+c5BRUAYujjIxmQr5L7BirMEEv+IqmoZeXgzSIzjNw6/ACHMafScID9Yw8fgfUg1ZoPTQN25Hj7jaLC93pYQvjVT9B1GEhpQJVP4xtB5QkZ9OiNaZPxqYaAAR9Opgj6RZthR3pWdMpkSXLkGAc6LjbpZMjeEuD33jgWdg+u5IfhLsCueeq9T46dAPfv6WS8QZtczmYoAjoaFzGXeA/Ab4O+ajP5MVEyo5ZDmBx9Rf4M7m7tIdmM8Zgmksn4WFalHFSTeR2wKyvk9vcpXrihpWGXiqFn8QR8c6rTNMOQwijsIeNQCseej1A+7ahPtD97w7Tyx9g==;5:ckx+K/wgd8rzs3HzdXZXUdL302esZEQ/LQsW8ST4EoElBXh9Xaan+N1Ma5FCyAdTBtEodicxwy5g9gHbCBykwjhEnGQi8zUvC/BR+FJ7RsreRaS5p4WO1a1o9oFMPYL5eujYbXG37w3NVmbsbx7ZdMJA9lrLY5o58CqBuY7IOTw=;7:EKNHjsQ2tDCoGS9w3w+hWtSvPehNm18C5/AVpiPdoXCxQNeTXHSFUErZk9rGsHenoAhXKxFXlqXixrbNM3hzISttIT9xsO8y6fGDR3kn4xYcDbPaY6Jtl88P/Z2aEAywyg6y9wcJJCTOuFqldn6+gw== x-ms-office365-filtering-correlation-id: fa5bde02-1166-4956-0ac2-08d63e880185 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:CY4PR2201MB1240; x-ms-traffictypediagnostic: CY4PR2201MB1240: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(788757137089); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(3231382)(944501410)(52105095)(148016)(149066)(150057)(6041310)(2016111802025)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6043046)(201708071742011)(7699051)(76991095);SRVR:CY4PR2201MB1240;BCL:0;PCL:0;RULEID:;SRVR:CY4PR2201MB1240; x-forefront-prvs: 08417837C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(376002)(39840400004)(396003)(366004)(346002)(136003)(199004)(189003)(66066001)(1076002)(5250100002)(6486002)(6436002)(229853002)(6916009)(2906002)(5660300001)(7416002)(3846002)(6116002)(305945005)(7736002)(316002)(8676002)(58126008)(54906003)(81156014)(81166006)(256004)(97736004)(2900100001)(14454004)(68736007)(25786009)(33716001)(71200400001)(71190400001)(6512007)(8936002)(508600001)(44832011)(476003)(486006)(11346002)(186003)(26005)(99286004)(76176011)(102836004)(105586002)(33896004)(386003)(446003)(9686003)(52116002)(6506007)(4326008)(106356001)(6246003)(42882007)(53936002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR2201MB1240;H:CY4PR2201MB1272.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: MKMc9vEn0n75NPpSLBhshB3W4Q9Dxquj5glw9vSdzn2TtYE/VfvUv3nKi2sKUo5/kqwlx3XhUnFrDRCdrKDPqbTtCDusXeB0M5esVLIt/WePHJRq10cb7zHRcc9XqC6yKEINKPlpbpXK99yUuYFshp9gombpUAYHd+Bnj94+SSzqpHGnNdLv45L+2XHKIbptq24WrR0cyqautJoQBQ+F6hL1CHsaTIFgiXEoaxqFpNoy1hHWJgxd+nr1FDnMWxOiRogCmIWAKsDgRBw/R4ReO7Mr6rkf3iARkwXRResH804jaBdf4WxgLVUox+7GtueuwBNiJEEIJI5z5AyrkgyrTfceV0XALMgdCQlts/s9Fzc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <256788EA86DFB442B581ECDC903CFAAF@namprd22.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa5bde02-1166-4956-0ac2-08d63e880185 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2018 16:51:58.6474 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR2201MB1240 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, On Tue, Oct 30, 2018 at 10:26:33PM +0900, Masahiro Yamada wrote: > Evaluating cc-name invokes the compiler every time even when you are > not compiling anything, like 'make help'. This is not efficient. >=20 > The compiler type has been already detected in the Kconfig stage. > Use CONFIG_CC_IS_CLANG, instead. >=20 > Signed-off-by: Masahiro Yamada > Acked-by: Michael Ellerman (powerpc) Looks good to me: Acked-by: Paul Burton (MIPS) Thanks, Paul