Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23834342rwd; Sat, 1 Jul 2023 08:02:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ETcmh6sNH3AecztkOc3kJUwMl7D58diFM9NUDHWlmCxQZe8N4y1lmne5hLSh7Hyqk0MmY X-Received: by 2002:a5e:a710:0:b0:786:4400:2719 with SMTP id b16-20020a5ea710000000b0078644002719mr6045380iod.16.1688223751785; Sat, 01 Jul 2023 08:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688223751; cv=none; d=google.com; s=arc-20160816; b=bGeGfBZmjjz8IXzHfOTxcOp+aXMf2Lx7ZPYZhfvRAVm1/JnakoCYIEj6tilVIS3rIn tQTRt5W2V5O3e6/6S7g+VYgOcqcvlSfUH8QDOuXfkDqCXXfawIkb8bBqSQ7f7cbF06rm s2UOFPaP2HDVXML8ENbfSoHmOvtnMvkjTI7pptedpBlQ4ZQW5i53VmNJ5xCeLQ/I2NuY ZC87/drmiarVjWq2a7E6eedHGc+Js/3QU3Cc/I60IjpE86xDLFErxS+1YvgXJXdLCfNK aYkCu57Gbf2adce5YryqrGgyBdKK1PrAp7jraVcqquzK+n6547vjltL3hU+1Sdt8zu5s cInQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=uyUkD0mJUU/Zf9ldB9gHD2S/2d4V8ANSTIaihttQl0A=; fh=oBkEIZmiWzL0ImNt0VeKUfg2bI27OyE6PhxULl5ealc=; b=kqUL0z8oM+8dAo8KMsgyFe8Vjb88cQe5ICaDpYWcQ4PQD5h9/yb6ZmpEcO76BcsINI 8QHHYN3gvBmWnRHhEZxXOpQt2OIR8BfkTpXHly0W/MWUebr2fa8bxoEvX6dFFYvJt9gO P8j/K9l1JgtZUjGP4v4OtrCbai1xz/ntuDX3UIg2GZ1WZ868c+j4xQR2ZayCnz+c++dx iT0obGNVzD79hmL41MP/WAr2RZyXwO4fR/2l09lAuAKb+ustFFqQL34U4wiv4tXTB8uy tYzDlWIFBw5Wm36mEW69zIlTzHUe6f34pPsKuPanhuqA+fixmD13iLcFP7QYe2EV3Zcg py8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IcDsm+rZ; 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 o15-20020a63e34f000000b0053f29758cd1si14491370pgj.839.2023.07.01.08.02.16; Sat, 01 Jul 2023 08:02:31 -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=@gmail.com header.s=20221208 header.b=IcDsm+rZ; 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 S229829AbjGAOkd (ORCPT + 99 others); Sat, 1 Jul 2023 10:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjGAOkc (ORCPT ); Sat, 1 Jul 2023 10:40:32 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25DCC35B3; Sat, 1 Jul 2023 07:40:31 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b7ef3e74edso14541555ad.0; Sat, 01 Jul 2023 07:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688222430; x=1690814430; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=uyUkD0mJUU/Zf9ldB9gHD2S/2d4V8ANSTIaihttQl0A=; b=IcDsm+rZ3hWCxWysGUBDBD5VD+zraq6+jUeIaKn/hFtcy9Dgr5iufxyQz/ygOH39mE dKiGEbAwOz8eJHxxFR55WRU7m202fAw12RiTvxzs5RHo6nbhnTtdSl9vjLQDwuPpFr/z TvqWtGPj6ulYtEAoYGwMzX2zyPasm2e1wbpEnozvkdR6lQUJ35w0J1Jy+siGUmFf5UjH cyNBZHheeVh8SCGH/hLqLeKWYGlmlyi9zqpcgdb7nIIezPoxwuP697JcW0aUKS6/EOTW Q8u1XdaYb+ICRxwdlNWbA5XSaRkEE1dnWAZEsbucaG8pYUT7P2RSzJAMx5thpCWC2gsn w6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688222430; x=1690814430; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uyUkD0mJUU/Zf9ldB9gHD2S/2d4V8ANSTIaihttQl0A=; b=Dwfa4vS5bwhszpWcehLGWzNrDOU2SuuwhftLNa6b+ZgMGTvEgXTmZK9KYUShYPYkBT 2Ycv77pRsuTGK/eNaDKGro+BypCutH9mLjsqtUawmH1w7oKzEYOH7lEzsh9DeOSRs8Ho nyMkxMsF672nQAM/85oL97rwlL2n6rVlxPMx19bzkVRm2au21fKscrfmDZzQ6IXvS+6v fDViTm1tIQkjuUI8ky/Dzt2wV+ulqRF8/WnUegRNPWUmgmwH7/TM84pZrZvqHORWfmjB ne3vZ+J49/u2jLRiHqo6T+Hr2Cyeczgq/hssgBjulq39XPvFvlAawEeSApWDpJu1YSzM RFpA== X-Gm-Message-State: ABy/qLbxblR9j4A7Hop/HIHaoyQjQflz9Wx3msXxNszK/WLCACMvFJRw x6lrtGY65HV05XAMRmTF6Pc= X-Received: by 2002:a17:90a:e60f:b0:262:e742:f40a with SMTP id j15-20020a17090ae60f00b00262e742f40amr3306132pjy.44.1688222430467; Sat, 01 Jul 2023 07:40:30 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l12-20020a170903120c00b001a69c1c78e7sm12361682plh.71.2023.07.01.07.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 07:40:29 -0700 (PDT) Sender: Guenter Roeck Date: Sat, 1 Jul 2023 07:40:28 -0700 From: Guenter Roeck To: Petr Mladek Cc: Andrew Morton , Douglas Anderson , kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Nicholas Piggin , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S . Miller" Subject: Re: [PATCH v2 6/6] watchdog/hardlockup: Define HARDLOCKUP_DETECTOR_ARCH Message-ID: <7cfc15f1-d8d0-4418-b7a1-5aa9e90e3fb3@roeck-us.net> References: <20230616150618.6073-1-pmladek@suse.com> <20230616150618.6073-7-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230616150618.6073-7-pmladek@suse.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Jun 16, 2023 at 05:06:18PM +0200, Petr Mladek wrote: > 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 > --- ... > --- a/include/linux/nmi.h > +++ b/include/linux/nmi.h > @@ -9,7 +9,7 @@ > #include > > /* Arch specific watchdogs might need to share extra watchdog-related APIs. */ > -#if defined(CONFIG_HAVE_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLOCKUP_DETECTOR_SPARC64) > +#if defined(CONFIG_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLOCKUP_DETECTOR_SPARC64) This results in: arch/powerpc/platforms/pseries/mobility.c: In function 'pseries_migrate_partition': arch/powerpc/platforms/pseries/mobility.c:753:17: error: implicit declaration of function 'watchdog_hardlockup_set_timeout_pct'; did you mean 'watchdog_hardlockup_stop'? [-Werror=implicit-function-declaration] 753 | watchdog_hardlockup_set_timeout_pct(factor); with ppc64_defconfig -CONFIG_HARDLOCKUP_DETECTOR, because the dummy for watchdog_hardlockup_set_timeout_pct() is still defined in arch/powerpc/include/asm/nmi.h which is no longer included. Guenter > #include > #endif >