Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6734032ybf; Fri, 6 Mar 2020 03:32:51 -0800 (PST) X-Google-Smtp-Source: ADFU+vsmAdeJQRnxyInZaCokApPZGI0zfDBtpVktKkuLc/i1v/7C4eRcWBY5nmxkTgUtHPQf0AuB X-Received: by 2002:a9d:649a:: with SMTP id g26mr2149656otl.266.1583494371824; Fri, 06 Mar 2020 03:32:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583494371; cv=none; d=google.com; s=arc-20160816; b=EQJu1I7BdYuDHKEvdFhPt2DNKmjn1gcuhxYAoKCNNl8W+z6OmVqYGqniw5uSSCBkzf EAMWkeFquf0UkJxCva5QEq385Vy85BGpJ5kSC1pXv2Y01AGduKKvuHeUeo/Rfli03Ofd HLklfrJ4Tbp9AH5MgemFnweWV1OQqafjSRIV1VK+BdiG9pMgYsBbJ37Pwz/javkWU2hg 5kzQ+sMmB4+F9C8t/e3HnlzcxsQLatzK9FQJiC/BVI1HP7EzN9d4S35UUbhOYMU7Cl4v 3SUmEH4Ybu8NAfiCBOntuUjAgfyxYVKs6WO7e65sXed0V6TwzukXX5V175R0iaHwieIz BlDw== 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:mime-version :message-id:date:subject:cc:to:from; bh=zGLK4uz6THho32Th/CJooJgB6rYwyhxibaMPFUEtXmg=; b=gj1FiwKDwlSre91h6Ip7IzcFcWhOKVXCQYuXhCd6w6+ZdfW/c2FKC66rWoZxudTiJc nRDmBTE7Ld5x2nI98S+2LKEFBOZRhL5ZdV5QPlGMZLVqe2EzXLQ2hijzc0+Zr8wxRqEk 4F7jmfaIzAlLXIQpn6W+gWhxOeYTzjsB3jk9M6S2pB1Conf/rT8VgTEOEGRvQJN2K+qN I19c3Ql1pLKs7kEIpC3WWdoPRzZaKPdyi0tYc3NcEI8k6DwkWHKU87S9LNSRD4MtUAtz ALWaQxlZ6sb1WTVFT1ZFAi0x3x6b8Y0mtdNvJZ1zNGfH3QLxv5ENZtlYHhRADnULBxSU 9FwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x20si1139844oic.75.2020.03.06.03.32.40; Fri, 06 Mar 2020 03:32:51 -0800 (PST) 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; 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 S1726231AbgCFLbj (ORCPT + 99 others); Fri, 6 Mar 2020 06:31:39 -0500 Received: from foss.arm.com ([217.140.110.172]:59960 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgCFLbi (ORCPT ); Fri, 6 Mar 2020 06:31:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4FED431B; Fri, 6 Mar 2020 03:31:38 -0800 (PST) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4F6683F6C4; Fri, 6 Mar 2020 03:31:37 -0800 (PST) From: Vincenzo Frascino To: kernel@pengutronix.de, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Vincenzo Frascino , Shawn Guo , Sascha Hauer Subject: [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Date: Fri, 6 Mar 2020 11:31:19 +0000 Message-Id: <20200306113119.56577-1-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/firmware/imx/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/imx/Makefile b/drivers/firmware/imx/Makefile index 08bc9ddfbdfb..5604adae31d9 100644 --- a/drivers/firmware/imx/Makefile +++ b/drivers/firmware/imx/Makefile @@ -2,3 +2,5 @@ obj-$(CONFIG_IMX_DSP) += imx-dsp.o obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o obj-$(CONFIG_IMX_SCU_PD) += scu-pd.o + +obj-$(CONFIG_COMPILE_TEST) += imx-scu.o misc.o imx-scu-irq.o -- 2.25.1