Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9342632rwd; Wed, 21 Jun 2023 06:20:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Lr5ApM1zp+7sWyCNUIQWxblVi8pBxrOEU6BN9tVFfekBwAHsexSrNlId85SKhQm58os5T X-Received: by 2002:a17:903:2308:b0:1b3:d4ed:8306 with SMTP id d8-20020a170903230800b001b3d4ed8306mr6605950plh.19.1687353659205; Wed, 21 Jun 2023 06:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687353659; cv=none; d=google.com; s=arc-20160816; b=wfrLpTlJ86ZOhWklUAR6rzr8qwEVOEOP8dPdwWsSb5jyrFZhuZ68ATIicYPLHmHkrT pHRI6fOYRE1D2w8rXvd4jiEHy3lJSK9MDXgV2kTTFLcNoW7Hy7ClePBL17FUNCYmmZgt wm2NBp5zxb27nZX2JVqE1vZ5R/+g8GCmujulKt24z1Rl6+Y5DVwFcWHVum5knhyAO7cn eGLr8W0aV5lGCJihUhJYluHazF8SMKMxI6SxcdtX7JBkZ3ig4gEmZbTRlXNU0nRJNSUY NTiH3rNiFnUcQhbW+9FNbRbUm+s5eo9AICstIl93CXrrNy/iiw9dYany501b1TD9AAuR kHyw== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=zMmz8eNhn1LuA/bMCpwWPyDta4A4p5omDG9jWVnrIhA=; b=I0EqfftUPa4SpInLcqW6FBaMBXFBTFwPm3w/u2XhFauYslbRIHqvbc+fvFuIMnnxlu qwT8CI0aGYQUYi0fOHlu2c11/h8qzgifC/1gR7br+VsPJwWWX/+0NmrACa5KOqC5A8rM 0keqEaBqVapLiC/J/i+VSvEkcCIJKMPaJvOvi6zbHljwyQNSMpFseEic5YBpqugv6HcP 31qZKnMcagG98GAHGo6g1POOT0yLCyREQyWlNqdErDVGjU+dBdsss8ZDyS32zH6ZB3ZT zhLpJoZTxNeGFihiYiClCfm5OFnA6XvRjBkmm8Kad53V+TdkEKQfHhdjXGmLjT2Hhb/L lcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=IELwl0a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b001b5219acbbfsi221049plg.359.2023.06.21.06.20.45; Wed, 21 Jun 2023 06:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=IELwl0a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjFUNIj (ORCPT + 99 others); Wed, 21 Jun 2023 09:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbjFUNIi (ORCPT ); Wed, 21 Jun 2023 09:08:38 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D951739; Wed, 21 Jun 2023 06:08:37 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QmP2R0Rwzz4wj7; Wed, 21 Jun 2023 23:08:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1687352912; bh=zMmz8eNhn1LuA/bMCpwWPyDta4A4p5omDG9jWVnrIhA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IELwl0a2CcWKtHQYpyrr7sFEKemIZwDa+P3WaQzNRjWOBtKHns7YRnhc4zJ61CtTe VtiNmWT/MSjxIcsMk0GFLElYIRQShuSOZETFrGgT4P/ghqCTLzPcLsUEq+LB9bTV+G ezXrX5eHiHuzHhgKJjcPGV4IhZoXJpyYiZGALWIB3CtTTFesoWwLyio6BWgifN4m/A Hc70Kn6muoGgmoZg4dh2jIQMqgSmiTjtGgniOT6wnQEbMbSiAeTGQxJDLRveCIyS/p RshmiYJ+tckcsHareuzZsBA7Thn4UtJZrdFKcOpxw0gcOY9CUtwyNJDvio492P5yOT 3xClQ4DFwCJvg== From: Michael Ellerman To: Petr Mladek , Andrew Morton , Douglas Anderson Cc: kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, Christophe Leroy , sparclinux@vger.kernel.org, "David S . Miller" , linux-perf-users@vger.kernel.org, Petr Mladek Subject: Re: [PATCH v2 6/6] watchdog/hardlockup: Define HARDLOCKUP_DETECTOR_ARCH In-Reply-To: <20230616150618.6073-7-pmladek@suse.com> References: <20230616150618.6073-1-pmladek@suse.com> <20230616150618.6073-7-pmladek@suse.com> Date: Wed, 21 Jun 2023 23:08:26 +1000 Message-ID: <871qi5otdh.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Petr Mladek writes: > The HAVE_ prefix means that the code could be enabled. Add another > variable for HAVE_HARDLOCKUP_DETECTOR_ARCH without this prefix. > It will be set when it should be built. It will make it compatible > with the other hardlockup detectors. > > The change allows to clean up dependencies of PPC_WATCHDOG > and HAVE_HARDLOCKUP_DETECTOR_PERF definitions for powerpc. > > As a result HAVE_HARDLOCKUP_DETECTOR_PERF has the same dependencies > on arm, x86, powerpc architectures. > > Signed-off-by: Petr Mladek > Reviewed-by: Douglas Anderson > --- > arch/powerpc/Kconfig | 5 ++--- > include/linux/nmi.h | 2 +- > lib/Kconfig.debug | 9 +++++++++ > 3 files changed, 12 insertions(+), 4 deletions(-) Something in this patch is breaking the powerpc g5_defconfig, I don't immediately see what though. ../arch/powerpc/kernel/stacktrace.c: In function =E2=80=98handle_backtrace_= ipi=E2=80=99: ../arch/powerpc/kernel/stacktrace.c:171:9: error: implicit declaration of f= unction =E2=80=98nmi_cpu_backtrace=E2=80=99 [-Werror=3Dimplicit-function-de= claration] 171 | nmi_cpu_backtrace(regs); | ^~~~~~~~~~~~~~~~~ ../arch/powerpc/kernel/stacktrace.c: In function =E2=80=98arch_trigger_cpum= ask_backtrace=E2=80=99: ../arch/powerpc/kernel/stacktrace.c:226:9: error: implicit declaration of f= unction =E2=80=98nmi_trigger_cpumask_backtrace=E2=80=99; did you mean =E2= =80=98arch_trigger_cpumask_backtrace=E2=80=99? [-Werror=3Dimplicit-function= -declaration] 226 | nmi_trigger_cpumask_backtrace(mask, exclude_self, raise_bac= ktrace_ipi); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | arch_trigger_cpumask_backtrace cc1: all warnings being treated as errors cheers