Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2640128rwb; Mon, 7 Aug 2023 00:27:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWcYFZxk+fdEcsPx2T5/m6QwHqF2Ak7O0UyTnNrP5/ae8FmjvswHTU7BIR4yQ4pZbMzlAH X-Received: by 2002:a05:6a21:6d93:b0:13f:13cb:bc51 with SMTP id wl19-20020a056a216d9300b0013f13cbbc51mr8957679pzb.25.1691393244196; Mon, 07 Aug 2023 00:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691393244; cv=none; d=google.com; s=arc-20160816; b=FRstDKDgASFnvwuHZpKly3FFqw6vMSdgF2o6khEdKJdK4NrtgRr9h32X3HDbTRUciW V7I+3pb6y8BpFqXZKw0jDRFgAM474QRUrfaBoJdduAjJf9T2zZwwYQiEV/2f5W8Xa964 jkYQG3EpElKZgiD1NzAR8jUuJsCNB0xco+2G6AuH4+937yOqbM+fSqk1if2Y5WWpMerR QOqvf6Hz5xfbLqqPpXTIQd8hOGzNeTlzkH811qVmuJ8+ni+y9/hVZSEjOvxy1Aysx6J2 uzrTbjcNuzhYmN3HbwY1qyBUomSllveDtw0RHdAfPR6JaoTxGeBqwUZRAcAHXvHos8IY Up6g== 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:subject:cc:to:from:dkim-signature; bh=uGPR4zFxOq1XMBP3pqS+X23NPmnX+ZKCr7Ut5tXn/8w=; fh=MSmRQ9+1tdh852CNh1iegRtHz0Te3eJVqcdsqHSXDAY=; b=tfyKlIyYG7x5GZfIcSuXtglYvviaR1PVl/4BJS/s2Wtt0AxmPx2Pcnp11dWrtY0jiP 66IUNtwMlWOM5UHW0TePAwMR3CmPVFrP9tiKyikEUk8N4NJHMGz2HSqhMgIxobiOLYX5 5ved53V5FircG69sFm/1BdzvK7c1tWuhYEc5gVl1NQUa5iZJT4MnrhN3AmrBsAnJiyql mXO4nBMnc02pLOlU8aKVvYiB/6YwxDvcYpRJGIot+z+sikVL0IdCmSnzZ3h4VUbR5b2m PCiGGQOqP/CEsTouF/ZNHJf3EhqjeMd5ocQ78q6Eo34gw3y4L5l1U2CN+8J2hFZUz5Cv rfYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FAzwmGF3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a170902e1c400b001aaed82c2afsi5291848pla.171.2023.08.07.00.27.11; Mon, 07 Aug 2023 00:27:24 -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=@kernel.org header.s=k20201202 header.b=FAzwmGF3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231461AbjHGHLS (ORCPT + 99 others); Mon, 7 Aug 2023 03:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjHGHLR (ORCPT ); Mon, 7 Aug 2023 03:11:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1F2D95 for ; Mon, 7 Aug 2023 00:11:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8559C615B1 for ; Mon, 7 Aug 2023 07:11:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4605BC433C7; Mon, 7 Aug 2023 07:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691392274; bh=zl1lIS7wrqrt5R7NPHOQdoixijqtEVsXNT3GmfceZds=; h=From:To:Cc:Subject:Date:From; b=FAzwmGF3Fl5om7Cufnv8iNzCShuR/28WqOE/6cBsHCviSzl6slrZNG0Sl4PDMTs18 bztD6Gm7niwIBN+uX+jGhBtgj99RHSM7Kd8s76WIJVx8wceZaK7eKXGV7vW7QMO8IZ QpPynKaLxbiBmPDSBJhxie0hrVJJOkSFK+Q73lpled4eKRvzriKXAoE3x1lQXVVhAo ymQJ5fp6BA4iEptmD1DLImMoOpF1Kr0kNebcsUuADiNDs1OqLcarMPT9ygHMtkeAwX dOi4Xc7fos5sNH0Ck6r4v6ZFGsXIEgczYDXKJb2pr+UCB8r6BylJCUcPkCyPf8f4Bl Ihja/M7X0mERQ== From: Arnd Bergmann To: Douglas Anderson , Michal Hocko , Andrew Morton Cc: Arnd Bergmann , Petr Mladek , Tom Rix , linux-kernel@vger.kernel.org Subject: [PATCH] nmi_backtrace: fix trigger_allbutcpu_cpu_backtrace() stub definition Date: Mon, 7 Aug 2023 09:10:51 +0200 Message-Id: <20230807071109.3386799-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 From: Arnd Bergmann The prototype for the extern declaration was changed, but the one for the empty stub is now missing an unused argument: kernel/watchdog.c: In function 'watchdog_timer_fn': kernel/watchdog.c:521:4: error: too many arguments to function 'trigger_allbutcpu_cpu_backtrace' 521 | trigger_allbutcpu_cpu_backtrace(smp_processor_id()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/watchdog.c:17: include/linux/nmi.h:193:20: note: declared here 193 | static inline bool trigger_allbutcpu_cpu_backtrace(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 0ca1d340a231e ("nmi_backtrace: allow excluding an arbitrary CPU") Signed-off-by: Arnd Bergmann --- include/linux/nmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 7cf7801856a1b..e92e378df000f 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -190,7 +190,7 @@ static inline bool trigger_all_cpu_backtrace(void) { return false; } -static inline bool trigger_allbutcpu_cpu_backtrace(void) +static inline bool trigger_allbutcpu_cpu_backtrace(int exclude_cpu) { return false; } -- 2.39.2