From patchwork Sat Feb 22 14:15:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 323170 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 59A332C0228 for ; Sun, 23 Feb 2014 01:16:28 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHDNJ-0001ZF-7V; Sat, 22 Feb 2014 14:16:17 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHDNG-0006aW-R8; Sat, 22 Feb 2014 14:16:14 +0000 Received: from pandora.arm.linux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHDND-0006Z2-Mc for linux-arm-kernel@lists.infradead.org; Sat, 22 Feb 2014 14:16:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=pandora; h=Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=1JIUSGMSLJ4x173J8n+r1vM1vtu0HClj2wJKcRRuG/0=; b=QFLUfeiV+ncLlG/SSrT29C+a+TugNOp1EbUEUZ2obk+J1A5AfU9BZ1Pck9yh9JNe5BsEi3CBokAl/xwBBL3Ed+h+xai9jLkG9NpivKxDL2DfXqZM4GQppA1qSASACtLJO6KV2RonevUatvNzkE5nhUorU2aRxcQoHK/33TLDfpE=; Received: from n2100.arm.linux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:40100) by pandora.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1WHDMY-0004iI-OC; Sat, 22 Feb 2014 14:15:30 +0000 Received: from linux by n2100.arm.linux.org.uk with local (Exim 4.76) (envelope-from ) id 1WHDMV-0003kM-Dx; Sat, 22 Feb 2014 14:15:27 +0000 Date: Sat, 22 Feb 2014 14:15:25 +0000 From: Russell King - ARM Linux To: Felipe Balbi Subject: Re: randconfig build error Message-ID: <20140222141525.GT27282@n2100.arm.linux.org.uk> References: <20140221155452.GH31902@saruman.home> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140221155452.GH31902@saruman.home> User-Agent: Mutt/1.5.19 (2009-01-05) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140222_091612_135129_DD42518E X-CRM114-Status: GOOD ( 16.45 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Linux OMAP Mailing List , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org On Fri, Feb 21, 2014 at 09:55:13AM -0600, Felipe Balbi wrote: > Here's the error I found: > > warning: (ARCH_HI3xxx && SOC_OMAP5 && ARCH_SHMOBILE_MULTI) selects HAVE_ARM_TWD which has unmet direct dependencies (SMP) > warning: (ARCH_HI3xxx && SOC_OMAP5 && ARCH_SHMOBILE_MULTI) selects HAVE_ARM_TWD which has unmet direct dependencies (SMP) > arch/arm/mach-prima2/common.c:23:20: warning: ‘sirfsoc_map_io’ defined but not used [-Wunused-function] > static __init void sirfsoc_map_io(void) > ^ > arch/arm/kernel/smp_twd.c: In function ‘twd_local_timer_of_register’: > arch/arm/kernel/smp_twd.c:391:20: error: ‘setup_max_cpus’ undeclared (first use in this function) > if (!is_smp() || !setup_max_cpus) > ^ > arch/arm/kernel/smp_twd.c:391:20: note: each undeclared identifier is reported only once for each function it appears in > make[1]: *** [arch/arm/kernel/smp_twd.o] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [arch/arm/kernel] Error 2 > make: *** Waiting for unfinished jobs.... > > The funny part of that is that SOC_OMAP5, ARCH_SHMOBILE_MULTI, and > ARCH_HI3xxx have: > > select HAVE_ARM_TWD if SMP > > so how come we still select it if CONFIG_SMP=n on that particular > randconfig ? Are you entirely certian which kernel version you're building? v3.14-rc1 to my tip has this: The relevant bits are the "-" lines, which indicate that with v3.14-rc1, ARCH_HI3xxx would select HAVE_ARM_TWD without SMP set, and indeed, your config you attached has ARCH_HI3xxx set. diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig index 8f4649b301b2..1abae5f6a418 100644 --- a/arch/arm/mach-hisi/Kconfig +++ b/arch/arm/mach-hisi/Kconfig @@ -8,7 +8,7 @@ config ARCH_HI3xxx select CLKSRC_OF select GENERIC_CLOCKEVENTS select HAVE_ARM_SCU - select HAVE_ARM_TWD + select HAVE_ARM_TWD if SMP select HAVE_SMP select PINCTRL select PINCTRL_SINGLE diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 653b489479e0..e2ce4f8366a7 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -54,7 +54,7 @@ config SOC_OMAP5 select ARM_GIC select CPU_V7 select HAVE_ARM_SCU if SMP - select HAVE_ARM_TWD if LOCAL_TIMERS + select HAVE_ARM_TWD if SMP select HAVE_SMP select HAVE_ARM_ARCH_TIMER select ARM_ERRATA_798181 if SMP diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 338640631e08..05fa505df585 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -8,7 +8,7 @@ config ARCH_SHMOBILE_MULTI select CPU_V7 select GENERIC_CLOCKEVENTS select HAVE_ARM_SCU if SMP - select HAVE_ARM_TWD if LOCAL_TIMERS + select HAVE_ARM_TWD if SMP select HAVE_SMP select ARM_GIC select MIGHT_HAVE_CACHE_L2X0