Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8911616rwr; Thu, 11 May 2023 07:43:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6U6TkXmQloBxoFZhcPZ2qmdND20lB+93a46oHU8CrVKZYJ3TrKDY+1xgx7zBnLzE9hKz8Z X-Received: by 2002:a17:90a:ce87:b0:250:2d62:d3e2 with SMTP id g7-20020a17090ace8700b002502d62d3e2mr21183888pju.22.1683816210020; Thu, 11 May 2023 07:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683816210; cv=none; d=google.com; s=arc-20160816; b=XGlr1VD0slWqoEdaMDj2dwcdVzYMIgOYWJcIAf28ZQJNnD9+U2qhaJscb1+BbcPvlt 1GqfsYJMPnBLIGdwPF7ecIhSLgjbqM0bqhT+FOAz5RW3uUijByh/UuB0sg2aR3l1M8vT qNdfI5mtOYY5YgqVz+JVtBARedLuYQrsffGkp4mFG4Wu1I2jDJIqynNtJ40ysvzEwsLL la9/CrAJ1IPs3lXU8gH9TORZgUaQbwdZEQv75WyeUTX34Cpl9OFEYpOeUc96Spy+STiK RHQUDJmCSEyycAaqBDlndEGHEDWTE6i0jAdIcy3b5wRo9zGyM16wXWU30iLBgtgNAFUf cMIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RDAnVIuo236iFwX8Q4PwBvcDGXZtwfSqujw0bG7p3X0=; b=nA+oznN2/Zs7/NCpw6JBxaLmottswinj36GT0nosTKiw2sjaZxYXPURJrg4kuoZhmt EDNi7cqq3okzQ7ukQAC3MJCfY64qcxwtzOH15UBRyxbT9Ao38D6DWvcPCk+WRm96yxuA 9E2aL9S946gXdGLk8SAjvtzTig7z2xZpbPrOsZSIgWzpoqjhkrq7V5nP+uH0jvMqaemP 4At1ZYcBCdpSg31YfotL6kPv9NFJzdrbaCjJm2Roi6C8aVVHl5QaFsTJLiB51eBNY71z ApMWxiLiT506Zp22IvjTO/tOnWOa4OTwZJKrlMtZMJFskwrRyOuxnYQzOtTuV+TN5s4b MQxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GTmTypfq; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk12-20020a17090b080c00b002475b063d35si20001453pjb.142.2023.05.11.07.43.17; Thu, 11 May 2023 07:43:29 -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=@chromium.org header.s=google header.b=GTmTypfq; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238108AbjEKOfr (ORCPT + 99 others); Thu, 11 May 2023 10:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237639AbjEKOf1 (ORCPT ); Thu, 11 May 2023 10:35:27 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BFAF11B63 for ; Thu, 11 May 2023 07:34:49 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-7577a91cfd6so261854185a.3 for ; Thu, 11 May 2023 07:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683815686; x=1686407686; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RDAnVIuo236iFwX8Q4PwBvcDGXZtwfSqujw0bG7p3X0=; b=GTmTypfqSNuLbRXk7CoP5u2QhIfP2ABwgsrnyU8SyjwRhri7xhRhiCPlxWYdoU3vL6 QFPcynxldEMfc6XpkSco9M92VA3cEELBoJbd600audt762yS1ER/PFkDdjZJO4jP2j++ g4DGXREKQ4yO+KZmco1dWlLLRgejdc3Buw1F8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683815686; x=1686407686; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RDAnVIuo236iFwX8Q4PwBvcDGXZtwfSqujw0bG7p3X0=; b=cDmZ4NXt6IdHzJAGEDOz3hfIrrkfDGIQSevr+Bw7LKnF0Tq9NWoRNYedSldrCuEfxX BOtfUpBorIYxnb+mf9YS+Cn9aX13T90PsjAEli7bxE0kHU9rbZ/anC2znSzC5PZ0gUGx nzxjYDcv5x2Iny5DmZK/5WkBX1MK5wZi8r/vfeYwjpSSBn71FRs6dua9hKXjQ8FTyuZV oDecG/gVvjym+EgaTziinrOw86PLRBwC2V5/WWXyE4zkfY6WgTXqNSdr0e+Bnuamm2vg ApGdmm3azjCwDsrRoR+gEs6oT0JNWAkBx/OWGobkd0G/6uZFIMvoamoONzclTIincn2I Gjdw== X-Gm-Message-State: AC+VfDyt5ph1hv+FPA2KdjSpLf1FTnlFPZnZ9tdU0wLfUHblkRe5U+OV nEJ+7TkvWDqMP9Qx0qEuWEa8ftnZhxwhrG2xz7YocA== X-Received: by 2002:a05:6214:e46:b0:621:2641:c656 with SMTP id o6-20020a0562140e4600b006212641c656mr19549867qvc.31.1683815686455; Thu, 11 May 2023 07:34:46 -0700 (PDT) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com. [209.85.160.179]) by smtp.gmail.com with ESMTPSA id a3-20020a0cca83000000b00621626c7003sm528747qvk.56.2023.05.11.07.34.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 May 2023 07:34:43 -0700 (PDT) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-3ef34c49cb9so747821cf.1 for ; Thu, 11 May 2023 07:34:43 -0700 (PDT) X-Received: by 2002:a05:622a:1a05:b0:3f3:9c91:fee7 with SMTP id f5-20020a05622a1a0500b003f39c91fee7mr421512qtb.16.1683815682956; Thu, 11 May 2023 07:34:42 -0700 (PDT) MIME-Version: 1.0 References: <20230419225604.21204-1-dianders@chromium.org> <20230419155341.v8.8.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> In-Reply-To: <20230419155341.v8.8.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> From: Doug Anderson Date: Thu, 11 May 2023 07:34:30 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 08/10] kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB To: Catalin Marinas , Will Deacon , Sumit Garg , Daniel Thompson , Marc Zyngier , Mark Rutland Cc: ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, Chen-Yu Tsai , Masayoshi Mizuma , Peter Zijlstra , Ard Biesheuvel , "Rafael J . Wysocki" , linux-arm-kernel@lists.infradead.org, Stephen Boyd , Lecopzer Chen , Thomas Gleixner , linux-perf-users@vger.kernel.org, Jason Wessel , linux-kernel@vger.kernel.org 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On Wed, Apr 19, 2023 at 3:57=E2=80=AFPM Douglas Anderson wrote: > > To save architectures from needing to wrap the call in #ifdefs, add a > stub no-op version of kgdb_nmicallback(), which returns 1 if it didn't > handle anything. > > Signed-off-by: Douglas Anderson > --- > > Changes in v8: > - "Provide a stub kgdb_nmicallback() if !CONFIG_KGDB" new for v8 > > include/linux/kgdb.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h > index 87713bd390f3..9ce628ee47cc 100644 > --- a/include/linux/kgdb.h > +++ b/include/linux/kgdb.h > @@ -377,5 +377,6 @@ extern void kgdb_free_init_mem(void); > #define dbg_late_init() > static inline void kgdb_panic(const char *msg) {} > static inline void kgdb_free_init_mem(void) { } > +static int kgdb_nmicallback(int cpu, void *regs) { return 1; } FWIW: I just realized that the above needs an "inline" to make the compiler not complain. I'm still hoping for more feedback on the series, but I'll plan to fix that in the next spin. -Doug