From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig Date: Fri, 10 Jul 2015 12:36:27 -0700 Message-ID: <55A01EBB.2040106@codeaurora.org> References: <55A01D84.8070701@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:51975 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbbGJTga (ORCPT ); Fri, 10 Jul 2015 15:36:30 -0400 In-Reply-To: <55A01D84.8070701@ti.com> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Dave Gerlach , linux-arm-msm@vger.kernel.org, Linux ARM Kernel List , "linux-kernel@vger.kernel.org" Cc: Lina Iyer , Kumar Gala On 07/10/2015 12:31 PM, Dave Gerlach wrote: > Hello, > I am seeing the following error when building v4.2-rc1 for arm with > multi_v7_defconfig with CONFIG_SMP=n: > > LINK vmlinux > LD vmlinux.o > MODPOST vmlinux.o > GEN .version > CHK include/generated/compile.h > UPD include/generated/compile.h > CC init/version.o > LD init/built-in.o > drivers/built-in.o: In function `qcom_pm_collapse': > :(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down' > drivers/built-in.o: In function `qcom_cpuidle_init': > :(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr' > make: *** [vmlinux] Error 1 > > > It appears the calling functions in drivers/soc/qcom/spm.c get included by > CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions > from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is > selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM from > multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something else > entirely. Thoughts? > > CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project