Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp451302pxj; Thu, 20 May 2021 13:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGmQsJYz5BAxm2EW6H2qjDvl/4vkDRovb995HveJ8etvg6QKX4hUEc4lft6B5FtcqLpRKA X-Received: by 2002:a02:7fc1:: with SMTP id r184mr8986846jac.109.1621541710483; Thu, 20 May 2021 13:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621541710; cv=none; d=google.com; s=arc-20160816; b=yJcphbhmek60HGNiWnyTRvk8uC54MeuWOpNz8RuiYetGmJYQpIwU7jwOX1IKzzoeIo zrHVoZxOXvO+sZQKcUEgBRO2Bn/zMu94s7SRorPvvMfFs2GJdSHOf1aPkgqcSPlsahwr VOJsPXKdvO3MAdyFNAr5Ak+nND3+Q6ndHK8sJuHVN5r3t2rtH9Deokuu8pBL7kIg5JTu ZycSW2SqzwkjQoOrnfiATAiHA1VzNhBQUO7z3P68aTm0zxUgFvewFe07NgtdWGDNJS9h FZ9a+0eLeVL9Bxy+TmzBMzw5vC8JmlawYrI7nxWeAc0mVUuQZxEecd+OJXJ7KVess5Y5 8pbg== 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=WrhyA2VOXDjGwupx4RR7JKZGwaTsiGu/GRYpk14AHJM=; b=NHp6XPuoz0vQbe0oPvQ0N6xKX8CL4x4SvIXPRHLkNvQ47BTq7fp5qZXqznWfGmoCCG gRWI8MfYiRPzkjL3LuM2trM66/w0OVRfyj+tT1vSUxuwwvEhqno7PJITryjNiFYoqpHq RNe6Us0p9p392JqmvUFC8PPBVA87ktYAgDqroy8INuv4L220tKH2/focYV2HZUnj6U8S vdKBusAhviO/MfXqp+eKVnOmgfRAJuCMspANxKAPKUfCw7/QSIoD2cR+ymS9+NFU1CsO Z8xY53ez820cEsKwoNHRjcIwpw5pvkxOx1mPrQapGGUG1Z2Cw6yOzDZCxsyfpJw9UJyf +7YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dLc5fr1K; 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 b11si3441214jat.37.2021.05.20.13.14.57; Thu, 20 May 2021 13:15:10 -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=dLc5fr1K; 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 S238371AbhETKrc (ORCPT + 99 others); Thu, 20 May 2021 06:47:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:60482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237323AbhETKbm (ORCPT ); Thu, 20 May 2021 06:31:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 37A5B61C49; Thu, 20 May 2021 09:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504338; bh=2GY01OsC7VGukOUeNRc8K8i7wEp992UsqrzLthKnV/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dLc5fr1K7vgEdVooW4vG8V2A0FKq0farzRZ7yIg0ZTs0oRcGh3FWnUFwyhB91sOJY q1+zc9wj3zo7JitnP2Ha8q7yO3aXJ6qip6ZMiKuUqIwPKPRLbc+wuHdDAJV18nyVu3 vyBRdDvxW7cN1LMIX9B/Vl9YepB/hhK5RHu6T/AM= 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.14 199/323] powerpc: Fix HAVE_HARDLOCKUP_DETECTOR_ARCH build configuration Date: Thu, 20 May 2021 11:21:31 +0200 Message-Id: <20210520092126.942607998@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 fff11a5bb805..3fcfa8534156 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