Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1505372pxu; Tue, 24 Nov 2020 01:49:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+SQGhkLPTBF7SsMgp8EZHMw57lAPFyAhu1DdOpvNq27t6slL7RvB8igIp86/0Ygy77rfv X-Received: by 2002:a17:906:a182:: with SMTP id s2mr1445635ejy.249.1606211360505; Tue, 24 Nov 2020 01:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606211360; cv=none; d=google.com; s=arc-20160816; b=zpTSFQrqAvaTo27J2NkBsrfyZezeNiUaQymHSYeMbs0oFQ//BH1r7qM2qpW0+QDzmA 1aczJJuDhPZrQFuc2xQYyoDA8fPVczth6roZKs5XgmbuK7GTugS3WwT8LnNOcR31CJ6B MrfObf0hUpK+V9kdyDBVCEQf0Li4pRTHSyW/3R2Od1hsT5qQ++PejwbmWhhUSOu6YtNd 17k7HDRa7g62018oa1yTwb6i191IBMro0K9eYMxajkilrHkQM6/g8LlRffXMAGfvTlw1 2hmHFZx9iiHCqApxL3evTKoeXc5sXg0WirynpNkYsMFGzo9YINrPd1KghlkRYgPqUKh3 sClw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=vISe+5wB/h5pyE12Pp0pjmb6JmR3bIj3Cr129rkgWE8=; b=Sd7Yn9Hki0HTKkRE4X6NLSA2c1vVngYhDlaXcihPVmDEediAjNkIg1ZPZmZHy4nZF7 /L5LRiZn7rBDC52x+OuPC+RThoLDO0HPSJ37ZqYKLLng8HaydHn/fkwvKmEiCFcJeh+k dsZgtii0XGaBpaC0Krn1nIqkFJ8xut0u94xKPHZDDwgovVEUrme25/UBIGqs1+IeGIkq 8AOT8unSSsB8lk/kYDa5ZySA7IeLc5MXO26Zu28yXRvS3djjzm6fEjmhKNeth586Ma3R RDt5NmyB37B7bpdwJa2DPHF/ynt0My/qF05v4MDz6Htafn7JZ0E5XNL3lCEwp1ySX1DP qwgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si8295565edw.247.2020.11.24.01.48.57; Tue, 24 Nov 2020 01:49:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731122AbgKXJrZ (ORCPT + 99 others); Tue, 24 Nov 2020 04:47:25 -0500 Received: from mail.loongson.cn ([114.242.206.163]:60602 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729704AbgKXJrY (ORCPT ); Tue, 24 Nov 2020 04:47:24 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx33+i1rxf0+gVAA--.35867S2; Tue, 24 Nov 2020 17:47:14 +0800 (CST) From: Tiezhu Yang To: Vinod Koul , Kishon Vijay Abraham I , Chunfeng Yun Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Xuefeng Li Subject: [PATCH] phy/mediatek: Make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix build errors Date: Tue, 24 Nov 2020 17:47:13 +0800 Message-Id: <1606211233-7425-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dx33+i1rxf0+gVAA--.35867S2 X-Coremail-Antispam: 1UD129KBjvdXoW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mailing-List: linux-kernel@vger.kernel.org devm_ioremap_resource() will be not built in lib/devres.c if CONFIG_HAS_IOMEM is not set, of_address_to_resource() will be not built in drivers/of/address.c if CONFIG_OF_ADDRESS is not set, and then there exists two build errors about undefined reference to "devm_ioremap_resource" and "of_address_to_resource" in phy-mtk-xsphy.c under COMPILE_TEST and CONFIG_PHY_MTK_XSPHY, make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix it. Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- drivers/phy/mediatek/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig index 50c5e93..66df045 100644 --- a/drivers/phy/mediatek/Kconfig +++ b/drivers/phy/mediatek/Kconfig @@ -30,6 +30,8 @@ config PHY_MTK_XSPHY tristate "MediaTek XS-PHY Driver" depends on ARCH_MEDIATEK || COMPILE_TEST depends on OF + depends on HAS_IOMEM + depends on OF_ADDRESS select GENERIC_PHY help Enable this to support the SuperSpeedPlus XS-PHY transceiver for -- 2.1.0