Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp440565imm; Mon, 9 Jul 2018 04:49:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdtCCiBMO/2rjV6uJdU+go72OwR7FEJRiy5SOIbtHjpXMDiMRsm/jUns5cb9H+VvGHAHDr X-Received: by 2002:a62:640b:: with SMTP id y11-v6mr21073170pfb.204.1531136942862; Mon, 09 Jul 2018 04:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531136942; cv=none; d=google.com; s=arc-20160816; b=YrNkMA2Tf26Zd9vLy+SW8ifnfQzJP2Om/i78IDEvuNvc/o+0Ci2Go19ITTLE1ThZ49 t7wIz2jWHMx+i7fL6+HbiJ7dpJF6OfU9UzEq0PFlau+FQIwf/5IeETFecB5xiXbO4+Qj q/gbzNzkCZNpMqIuNw0ViPoe1tHqIY4yrT26x3J33HVeO2Jh4YRfqjbsiMNhAjbdwUfB tkwY0k3FbSEV9x25hEjp6a400WdOivVdnKdPJKPSwU1FrOtAotId6N2+jr3tMFkZuIYw qpGmlX6q8FW/OfdcO3LYTfUPKYcuTfFzmFeAl+Le4vH0EzhEyq+6H/+W0WXvUaVZQvbW uquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=LLdq7Ocvwnb3CyWPAWj4U7DBytjDO1SdMwBJh8bZHBA=; b=sJy7m4BgW78H5B+H5n56M1UOPTV5Ue/YnfyR+WgNi8GomQtpynlWvexGkNl6MWa4GM XJHUwZoifO9vulG+y/x8OVRIHkbicHBAZJLFD/DxGc4KZvUG6/Je5dVQ2C7dOhfjWpzM cfnrg9E+ajlmxfZgKeYAN5S8oCKe5vDNxx9G7IudwLDswX7Zs7zzv1XwH7n4uyzOHDcc LMTHPdq/WKEy/o2142KRr0UXPWDlXbI/VwtKijbnn00/3F/GiJs0ONsUpABrtuF5IdaK yl7wU8TwUcb9u7BEkRqVPk9xrF2QwcItWl/jl0FSJMBZYkSwlS2VmMuBX8gzlDPhWNFX afLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C6hGXh5N; 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 s7-v6si3224063pfb.16.2018.07.09.04.48.48; Mon, 09 Jul 2018 04:49:02 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C6hGXh5N; 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 S1754521AbeGILr0 (ORCPT + 99 others); Mon, 9 Jul 2018 07:47:26 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44806 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754451AbeGILrY (ORCPT ); Mon, 9 Jul 2018 07:47:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LLdq7Ocvwnb3CyWPAWj4U7DBytjDO1SdMwBJh8bZHBA=; b=C6hGXh5NKzne3qute+DAOX/A8 tASqK1GMEpM8F//yziagg4ClbKb+6a1ps9nXtQZ3DpaHuvFUhjl+B5Q15S3A/B7mFkEjejnkH+mF8 mHBUW8+GWcB6XBppMywfuXK9XS1HQMK8zg74F1nfjhJNZwU26UDZtsyWhugb0y6M+IOFqsaeZWaIM 8i8/5qc3yAkbI4zC6fRv3vUuByMzeA71VQDQ8rnI0iyNF9lbgEApaNdhUM8iIq5LsUXgF0zRMoxn6 MZnwqLRFomU7vrTGpm8pdUT/jTy2upomdtLV00Vhsy5S1ORwY6iOSAxeQPqTMECzxPJyBDGgB2fGg jPcWqyGnQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcUdS-0006Q6-R8; Mon, 09 Jul 2018 11:47:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A7D6420297EAB; Mon, 9 Jul 2018 13:47:16 +0200 (CEST) Date: Mon, 9 Jul 2018 13:47:16 +0200 From: Peter Zijlstra To: Abdul Haleem Cc: linuxppc-dev , linux-next , stephen Rothwell , mpe , sachinp , Ingo Molnar , linux-kernel Subject: Re: [next-20180709][bisected 9cf57731][ppc] build fail with ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734 Message-ID: <20180709114716.GN2476@hirez.programming.kicks-ass.net> References: <1531129883.6480.7.camel@abdul.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531129883.6480.7.camel@abdul.in.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 03:21:23PM +0530, Abdul Haleem wrote: > Greeting's > > Today's next fails to build on powerpc with below error > > kernel/cpu.o:(.data.rel+0x18e0): undefined reference to > `lockup_detector_online_cpu' > ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734 > kernel/cpu.o:(.data.rel+0x18e8): undefined reference to > `lockup_detector_offline_cpu' > ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734 > Makefile:1005: recipe for target 'vmlinux' failed > make: *** [vmlinux] Error 1 Urgh, sorry about that. I think the below should cure that. I got confused by all the varioud CONFIG options here abour and conflated CONFIG_LOCKUP_DETECTOR and CONFIG_SOFTLOCKUP_DETECTOR it seems. diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 80664bbeca43..08f9247e9827 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -33,15 +33,10 @@ extern int sysctl_hardlockup_all_cpu_backtrace; #define sysctl_hardlockup_all_cpu_backtrace 0 #endif /* !CONFIG_SMP */ -extern int lockup_detector_online_cpu(unsigned int cpu); -extern int lockup_detector_offline_cpu(unsigned int cpu); - #else /* CONFIG_LOCKUP_DETECTOR */ static inline void lockup_detector_init(void) { } static inline void lockup_detector_soft_poweroff(void) { } static inline void lockup_detector_cleanup(void) { } -#define lockup_detector_online_cpu NULL -#define lockup_detector_offline_cpu NULL #endif /* !CONFIG_LOCKUP_DETECTOR */ #ifdef CONFIG_SOFTLOCKUP_DETECTOR @@ -50,12 +45,18 @@ extern void touch_softlockup_watchdog(void); extern void touch_softlockup_watchdog_sync(void); extern void touch_all_softlockup_watchdogs(void); extern unsigned int softlockup_panic; -#else + +extern int lockup_detector_online_cpu(unsigned int cpu); +extern int lockup_detector_offline_cpu(unsigned int cpu); +#else /* CONFIG_SOFTLOCKUP_DETECTOR */ static inline void touch_softlockup_watchdog_sched(void) { } static inline void touch_softlockup_watchdog(void) { } static inline void touch_softlockup_watchdog_sync(void) { } static inline void touch_all_softlockup_watchdogs(void) { } -#endif + +#define lockup_detector_online_cpu NULL +#define lockup_detector_offline_cpu NULL +#endif /* CONFIG_SOFTLOCKUP_DETECTOR */ #ifdef CONFIG_DETECT_HUNG_TASK void reset_hung_task_detector(void);