Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp348436pxj; Thu, 20 May 2021 10:41:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWsAPOSknc/aaWT3Pm3IInNwBtKqU0Dh9u/QMtPnVxdtceBagb4ZqsvWxsUbZ7QReVQETw X-Received: by 2002:a17:906:6ace:: with SMTP id q14mr6100335ejs.79.1621532483101; Thu, 20 May 2021 10:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621532483; cv=none; d=google.com; s=arc-20160816; b=aU2WGv6soIHuWKq6X0Kn5Jy1QV77dFgCA2ioT4jIWeR0LQ/99Hvc3bhRzsTr+v6lmg 8mrFl5BwBoaUcN80AL24VnoCTgc8NUqy+oR8m9+ji4gyEIcaxmUCYZAKTpONqByUJrtt /Tbr1atpjD2pqC0V0oARKJBg9ckLk7Ka5DoEXEWenxABtbHYh2Bq9A656pvkbviYttpx IlvARX0YUMoyIVsMXzQd5qN+wXcwy+UNO1Pp1Lsv+33QkZWSoJMHgIzgTzkQgMb9TCan jCBLPiIF7DCfdPGX3+q4NEHbh2Q56vAPX8E6OO41EYnByMTmWBU1tJj/BF/GK9s/jpgn k04Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Wn4CgEhE1H4TxabdFlDEeNeU/UBfCmOsUSeSPKQhSx0=; b=ZfdAbziNJokhpa+2SEsLQTY+dMELheO8HSzZoUZAxxKIXKUGg5e0AbIdMHEcNzAbba xh6vPM0svW3g+Ot9o/WR//erxWy6cPQY/gBlX6EzZC4eckVSmWto/rWIY8J9M4gWvn3v rZwJHJzfgaSL7RmShg11eNk4JAQjqqGAvgE3w0cXa/9Kmho777DCOZTvHJQNg3bOibTe EAP9H8UGlhMlUcUq0pFHIMijKvvNa7v3ItoBlnHgaLbE3B3OmUGDhlleexfGlBCj9y0f dNUCDXChltD/LB8ZFRTEqelrrswyvNsHqyi/jS/MQGNdsDJ/MceFnPlZuTIffHfJes8E NP9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fBYeWjIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si3167478ejc.422.2021.05.20.10.40.58; Thu, 20 May 2021 10:41:23 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fBYeWjIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235821AbhETKJ1 (ORCPT + 99 others); Thu, 20 May 2021 06:09:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:36564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbhETKDX (ORCPT ); Thu, 20 May 2021 06:03:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CEDC6142C; Thu, 20 May 2021 09:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503603; bh=L23xSBOAnyAlQcFOEdPmVvG72roz3qiD9SDhEE6UNYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fBYeWjIR1Q6iZhukQeaIXSYcAexZzqGZRV5M+dHRsPp0yGxs7jVgBOYZ0lgS6sR7y bYv11wDKuYC6Qblz3PCdm+D4rDWHY4fQed4E5+hHlPcvS5Nwd5IxdROFhUaljBZOHB xgAtGuz9hGKWleoXBUuzkeXTOCg7P/XC4sygal8A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Chen Huang , Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 252/425] powerpc: Fix HAVE_HARDLOCKUP_DETECTOR_ARCH build configuration Date: Thu, 20 May 2021 11:20:21 +0200 Message-Id: <20210520092139.694449821@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Huang [ Upstream commit 4fe529449d85e78972fa327999961ecc83a0b6db ] When compiling the powerpc with the SMP disabled, it shows the issue: arch/powerpc/kernel/watchdog.c: In function ‘watchdog_smp_panic’: arch/powerpc/kernel/watchdog.c:177:4: error: implicit declaration of function ‘smp_send_nmi_ipi’; did you mean ‘smp_send_stop’? [-Werror=implicit-function-declaration] 177 | smp_send_nmi_ipi(c, wd_lockup_ipi, 1000000); | ^~~~~~~~~~~~~~~~ | smp_send_stop cc1: all warnings being treated as errors make[2]: *** [scripts/Makefile.build:273: arch/powerpc/kernel/watchdog.o] Error 1 make[1]: *** [scripts/Makefile.build:534: arch/powerpc/kernel] Error 2 make: *** [Makefile:1980: arch/powerpc] Error 2 make: *** Waiting for unfinished jobs.... We found that powerpc used ipi to implement hardlockup watchdog, so the HAVE_HARDLOCKUP_DETECTOR_ARCH should depend on the SMP. Fixes: 2104180a5369 ("powerpc/64s: implement arch-specific hardlockup watchdog") Reported-by: Hulk Robot Signed-off-by: Chen Huang Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210327094900.938555-1-chenhuang5@huawei.com Signed-off-by: Sasha Levin --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 6dd2a14e1ebc..f0e09d5f0bed 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -208,7 +208,7 @@ config PPC select HAVE_MEMBLOCK_NODE_MAP select HAVE_MOD_ARCH_SPECIFIC select HAVE_NMI if PERF_EVENTS || (PPC64 && PPC_BOOK3S) - select HAVE_HARDLOCKUP_DETECTOR_ARCH if (PPC64 && PPC_BOOK3S) + select HAVE_HARDLOCKUP_DETECTOR_ARCH if PPC64 && PPC_BOOK3S && SMP select HAVE_OPROFILE select HAVE_OPTPROBES if PPC64 select HAVE_PERF_EVENTS -- 2.30.2