Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp342517ybh; Wed, 11 Mar 2020 02:08:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs35Z4tUda0Msyyr2+8MkbyNc6VgPPWiHoIpzixEyAQBDlWQrgwGzf3SzeS+Q80T7g2gp4l X-Received: by 2002:aca:5403:: with SMTP id i3mr68586oib.174.1583917729197; Wed, 11 Mar 2020 02:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583917729; cv=none; d=google.com; s=arc-20160816; b=GqtgZ57DzyG3Gvbl2FkGv7/RIwkfeQxbFU/bB4OUezn351yObG/iIGqS9ofy04MHQI FzJQDzif1p76uwE8Xt2ihtUs5zLhsQMoTbm6t2Ns8ehVD++iNK6yO7JR5LCUxS/JTnR5 qud0Xil7R7NCvXyumZS6OIvDnfDV7sHnzK9xecypq6ydxdMP6rjlj2FwcFc0O2K3qP6v N86tktu17AT2WHONXIwl/1bUgAiF1L2CFY7TYH9q7BObxvbRKoBEKsA2lttovzXa8XSA LuQSM9b51Tlif1TbEprmuhBic08+DKGUDfAqILmuZUphPX96VtTvCACj3notoxSX0WaN AEoQ== 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:dkim-signature; bh=b4qtGD78r/Daeza3MpIDuJw8kBxWAoguppf8B7AI1sA=; b=ITpijobagLxx3tkOztMkBQt8cXKVPfQA4s+Us5V8GBNchw8okZSMeKPBQv8xqCtUps dzsWRed3TDcHQUIEwHVXTQOAZgjqn/ZFXZjw9hgQryLhcbkvmPEshxnfSNkBptT4PNi+ AFYuPFlORRfZ22Si0z+x9/iKeYS+AWeG7HqtwjnLhNT6D7CD21phHkKKTOrUXrq6KKW0 L60vc4fyLqtWkuNh9Qp10tO/jY4DQP7W53UciwRAJVx3mQ54ponV/FrcHTaU9x0Yf7d7 S0xnRV3J6OPxYDzI2Rh0Y8LeOctt7YBPOZrmh/7gISAJK7ekgd//KdVVoZbgnGRI2qI1 3vGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aNw2LHdE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si791446ote.150.2020.03.11.02.08.36; Wed, 11 Mar 2020 02:08:49 -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=@kernel.org header.s=default header.b=aNw2LHdE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728831AbgCKJGx (ORCPT + 99 others); Wed, 11 Mar 2020 05:06:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:45240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbgCKJGx (ORCPT ); Wed, 11 Mar 2020 05:06:53 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BBDE2192A; Wed, 11 Mar 2020 09:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583917612; bh=bl70ZTDTBge6jnrLfGymPXU8SZtUF9eRxaWa5J+K1hc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aNw2LHdEFw/xpNtVwu2diZ3DRw+K+MH0wUGaGW/1+kXqIiJdFyOFWYI0OSfjRWrn4 vifhKaDjZQLTumfVGM1bpw1aX1cX0RjsO0y51ws7FEH7Gu2kKgDcjROJ6oRdOFpx2M 504YdyX1JF09LzSjpbqvzLlFrbzOv+SAWxGDa2MA= Date: Wed, 11 Mar 2020 17:06:47 +0800 From: Shawn Guo To: Vincenzo Frascino Cc: kernel@pengutronix.de, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sascha Hauer Subject: Re: [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Message-ID: <20200311090646.GJ29269@dragon> References: <20200306113119.56577-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200306113119.56577-1-vincenzo.frascino@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 11:31:19AM +0000, Vincenzo Frascino wrote: > IMX SCU SoCs support COMPILE_TEST that allows to compile the driver on a > different platform for development purposes. > These SoCs depend on a firmware interface that is not built on COMPILE_TEST > mode. This results in triggering the following errors at compile time (on > arm64): > > aarch64-none-linux-gnu-ld: > drivers/soc/imx/soc-imx-scu.o: in function `imx_scu_soc_probe': > soc-imx-scu.c:(.text+0x24): undefined reference to `imx_scu_get_handle' > aarch64-none-linux-gnu-ld: > soc-imx-scu.c:(.text+0xac): undefined reference to `imx_scu_call_rpc' > aarch64-none-linux-gnu-ld: > soc-imx-scu.c:(.text+0xd8): undefined reference to `imx_scu_call_rpc' > linux/Makefile:1078: recipe for target 'vmlinux' failed > make[1]: *** [vmlinux] Error 1 > Makefile:180: recipe for target 'sub-make' failed > make: *** [sub-make] Error 2 > > Enable the relevant compilation units in the Makefile when the config option > is selected to address the issue. > > Cc: Shawn Guo > Cc: Sascha Hauer > Signed-off-by: Vincenzo Frascino Thanks for the patch. But we already queued Peng's version [1]. Shawn [1] https://www.spinics.net/lists/arm-kernel/msg787548.html