Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4627650pxj; Wed, 12 May 2021 09:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuESgRl+n/fkSrBQLCYVyC7DKYCDUyl3nSxb6fezJbPKCnXgF3LlZY9wD3DcEwhxRVr2g9 X-Received: by 2002:a05:6402:3109:: with SMTP id dc9mr44932611edb.13.1620837182787; Wed, 12 May 2021 09:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837182; cv=none; d=google.com; s=arc-20160816; b=vvJI4IfLzjDCYAUyh0HkPk/mK8voFqpYuTY0DYv41xK0hScU4IOlmGMFC/Ko4B4nn6 +20C1c+Fmwak/AiorTl+fk336WE//k2uUEs/PX7ESMyjdifF4x+KyxSveEZugORjeIUw sMw9u/3YE1gQJ7ILnKWZVn5r34HcTIRbz8gy12hrwvKCtECHx22HxHbwcTjXU8NfoO/x DFi9ASZJ503emkVubn+uH9vEjz56UrjrjiiYZwH84tbRoYioKYgbK01+hVDL9zmkxMYb rhYZWzNHTMikUf9bdcyif+rw70qqFRNv52WSHwwhF+fGjTDegIYOrrIFwHU/31HAEc49 4mrA== 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=kTaDDnnxSF6jNQr/d58X/rNsYSUSTroTIb4Dv+JRKAE=; b=W8ZkM5cYmSs8nwCJ0dZvujzQpn8VJRL7HCzgwv3JmORjIpfQVd6+hiAGltSNESjq1g A4nWbG/fMiBst2pU3Abg3RjRdCZj6shASrRbZzfRMGmIG4aN6uoHPSm4xt7MEqCLv1Sn yWjBuTtqRyKjhZ0uZUUmMByJgE2nsGswKDI+sBd4RrXdWPf7mez/Z52Auoo/cftpAvLI Q7meUTuLr0q8w0JtHGmEEYLxLkwJpJHBvy1xYYkGCZ0b8hugb+WEWXbPN85iURXSEuEE th818/5lDzIDk8zkLbol4EeXLgNd6+Gh+9pUutXgI1bEnk8E/6A9qRuWMAovz/n3WR1e dlZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oz0BwfKf; 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 r27si366513ejc.437.2021.05.12.09.32.37; Wed, 12 May 2021 09:33:02 -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=oz0BwfKf; 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 S240805AbhELQZj (ORCPT + 99 others); Wed, 12 May 2021 12:25:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:56692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236333AbhELPhl (ORCPT ); Wed, 12 May 2021 11:37:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81B1561C5D; Wed, 12 May 2021 15:19:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832754; bh=0MsT3YcXAKu6F1DF6dOCh48jpuiSu7HG6nCqd9EEyEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oz0BwfKfKikkcIMdWoGg72ulhSPt4Af0uCE4cWA7H3z0uaxZ9EPzQgS7mPDk1pDxD ZDw5Ib2nZvvdagE0S4guc4aetK0It/bCuA5JUYd6s5HRo+wMkF7nkbQnu8DgrokXiX JukM0lvod+7blwEEqwbSWtHpxIEto1Ab+7owUTwI= 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 5.10 375/530] powerpc: Fix HAVE_HARDLOCKUP_DETECTOR_ARCH build configuration Date: Wed, 12 May 2021 16:48:05 +0200 Message-Id: <20210512144832.103269860@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@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 31ed8083571f..5afa0ebd78ca 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -222,7 +222,7 @@ config PPC select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS 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