Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp351560yba; Wed, 24 Apr 2019 02:17:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNZc0/Oa1RD+viYDUKalwZe2qQLhpIVRj0KNlKJdW9wH8dYo4f3zs+V6J6HZCx2iYhxjUr X-Received: by 2002:a17:902:184:: with SMTP id b4mr31271703plb.26.1556097463870; Wed, 24 Apr 2019 02:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556097463; cv=none; d=google.com; s=arc-20160816; b=SMmDTMtN58NK+eq1G82GjPKJ/U5ePsgyUNEATeafzP1SQIRvlmXmUPiC/l9UPzLTip G+X85Jqi5oc+GvxJ7A0tO1Pb1PH3fdXd6t0SlYdnogDG5XnLSKb9viOycRgDZeCF+MP1 mEvBHnKT3IFcwucEL+d3HfF96oO0QoW/pPNXrbR/kMoItAd0EwBon3Y8VUfQhc7OvAYZ RewIm8VxXUJlQjBnsG2LVGTPjPxhXOIS5DtclVWzNV8hh6OUd9+XkhXR6E2gUTnDEL2J 9BO+45ZMzYn2BfshbkgbBdX3tJf8JRKp2Gn52KPMWCDBf66+I5vDGZNDGB6gKTtZOief ktnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=+2lxutsmtcZrUVdEfV2fIrPAshtyiicARfSnMwzcAEM=; b=unpg3aNFNFvyYFhrZIaGv04z2rAccIafpfbglhcDeQojEM30MVfDpVX72cT7I6VDpS 4oSffQp993nuq9yKB9Kx6yqIEoAcwmUKvXZKtjOm/qWc+yVwHDFCX743j0mOQ6Z0qywd 9L8mETY5oPZ3ShKx8GSf8uHu2zpgPF1hAcMX8GVtuAtzkV7UrbkfsI/dEvddsiuYCxM7 hadDZey7Tk0MQ40rc8DMjGcpKWQCahtU1KlNW9GQTHV02kQ+ZZGEDZmkPSbAyva3xf6q wz0Q/xpAgPQ82q07Qf3y9clqwPntkUPED/vjsymUABOv2zY1DRoktf8j+wHE1vW0G7Ge +JYA== 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 j12si573112pgg.6.2019.04.24.02.17.28; Wed, 24 Apr 2019 02:17:43 -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; 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 S1727975AbfDXJP5 (ORCPT + 99 others); Wed, 24 Apr 2019 05:15:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46900 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727809AbfDXJP5 (ORCPT ); Wed, 24 Apr 2019 05:15:57 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 73C43F0C4FEDCA5A985A; Wed, 24 Apr 2019 17:15:55 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Wed, 24 Apr 2019 17:15:46 +0800 From: Yue Haibing To: , , , , , , , , , , , CC: , , YueHaibing Subject: [PATCH v2] soc: imx: Fix build error without CONFIG_SOC_BUS Date: Wed, 24 Apr 2019 17:15:17 +0800 Message-ID: <20190424091517.41428-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20190424075946.23124-1-yuehaibing@huawei.com> References: <20190424075946.23124-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/soc/imx/soc-imx8.o: In function `imx8_soc_init': soc-imx8.c:(.init.text+0x144): undefined reference to `soc_device_register' while CONFIG_SOC_BUS is not set, the building failed like this. This patch selects SOC_BUS to fix it. Reported-by: Hulk Robot Fixes: a7e26f356ca1 ("soc: imx: Add generic i.MX8 SoC driver") Suggested-by: Leonard Crestez Signed-off-by: YueHaibing --- v2: select SOC_BUS from CONFIG_ARCH_MXC directly --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b5ca9c5..ae7f008 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -157,6 +157,7 @@ config ARCH_MXC select IMX_GPCV2_PM_DOMAINS select PM select PM_GENERIC_DOMAINS + select SOC_BUS help This enables support for the ARMv8 based SoCs in the NXP i.MX family. -- 2.7.4