Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10350177rwr; Fri, 12 May 2023 07:07:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ka+0wlbsN+lg9uDE2Gyr2AL18IVy0BVJyiFeY3YlKV6VZpVQYa1y6wglzGc9fBRpSzykE X-Received: by 2002:a4a:255a:0:b0:54c:ab15:a609 with SMTP id v26-20020a4a255a000000b0054cab15a609mr5277146ooe.9.1683900431055; Fri, 12 May 2023 07:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683900431; cv=none; d=google.com; s=arc-20160816; b=EcDOw9EfnKXCB9Kv9RO8BypQ5CAD6fw5hB4m3jGMmY4wwiNVgqrQB9MhMbqiJN8vcE Ozs7htBkaSADqO05d++PXd0UwxJS561+M7C2vktDRdOPyfzKcPj09JWKdK5StT2lKAom R0CITul/b7ho7D3TxGmEZXMFk/djKWXpnuU4kCQbUeyMuqgZDcKsKuUOX4UnR07awHcz 7GoWK95B0RBdr4mMsz4s2846IS6kEp6195tVvVjKoSSwFfVnAOsaEdrKzoY82754gB7h 4Pg9HMWkdOGNVUPORJvIiM1sqbFo8IbObSIQX/pyLSkGG0vdsEo2WX0XivApSs9iT5oq rhJg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KlqtYj2sIx0sjwwCMtZ7w/k64brEWXitqz4tOF+SKWQ=; b=bmf0KacZE3/ONXK3WHkE7it/ZDbBw2F6KACYRORfY87pPj46QFz+5ZziFlG82qLwVX wE5aQF8n4aK5kv3xib/frDXDgej6lGEOBozqnMc0c1aVf4BqjndvJifyOA16JbtLXIOf tq+5GSP0AH7KzZ3eKkBkO2W7rq+OA9h2M/XPT8PslnCtb2Dn1usDHiQbv9F1u4AwZTqj 9yx409aU2zdjYSLgZOnRvZlLX7NB4YZhmGZhoq+DXZ7UfEty+Tpuz3zXdXTfsgEw2/HB HiDzLKJ6RxKlNWHu60RSEc6FwGRyiGslShdPL37xk17hSLG4AaB0fFL7fSAl6XdI9tNs ioLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ikM1onuz; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fu16-20020a0568082a7000b0038e69a874dasi6510955oib.121.2023.05.12.07.06.57; Fri, 12 May 2023 07:07:11 -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=@linaro.org header.s=google header.b=ikM1onuz; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241354AbjELNwi (ORCPT + 99 others); Fri, 12 May 2023 09:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241172AbjELNwe (ORCPT ); Fri, 12 May 2023 09:52:34 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C79413850 for ; Fri, 12 May 2023 06:52:30 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-305f0491e62so9592663f8f.3 for ; Fri, 12 May 2023 06:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683899548; x=1686491548; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=KlqtYj2sIx0sjwwCMtZ7w/k64brEWXitqz4tOF+SKWQ=; b=ikM1onuzF3Q2H1SPl3vp3GOfHcQ+i0G5uF9g9tbNOkzp8gBEtd0oUKEFRDxfL9LnOQ JfEkQeoEAU2gKgbpS/KjT0ta/VG6CP75xgy7ao5vtDsXQUFAJx6BJwnhlEGOJOAk3d/7 AptQCENFBIBebQimL+ZHRUT8eDT4YH9BW1UuXCZFa0O4wnqhByXHQrRfylk5N0s2GhLu FizGaUOzpuqFK8zQPZN+rchWGEOO1O2TiXromozhQbkYEKO3KW/XF6Hp3jnp1PHSdCg9 QRYQ05kei/nv3fNKIn0wqzZD6tiarLvKdaHkPrNVweYs7f/SqzE+ot9y5P6EpLG+s98Q Is2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683899548; x=1686491548; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KlqtYj2sIx0sjwwCMtZ7w/k64brEWXitqz4tOF+SKWQ=; b=RjfjjKZrVE9imRTI2pHzyc3O4PWiBqKwiS98bjFNf0rJ/McZUvpR1IdbFDiWPOxr+l WEWZIbvR9LsZbDE9JORPlhmQHP+x7FUfghy8sVOd5hDKLSI/ggOxoCwgFi5golMa5QJj nG0sVG84JuwEaITU6d7qMo1YJYsDEL/ZAkcUpM5in4OxyK8M0a0VNm1IlRMwyRi0DV6P Z59nxDSnocClc6DOH/5sPYE4FBVX3SFOQMql3QTjW9Qksg45MM7cw5HUlJqqVpjes0p9 oK8e1/Cgxr9VqqB641CpFttPsXQ9UvrEejy6cNhc7mJaR5BIbd5Aa9Xe7erte8LQ/5qn gsaA== X-Gm-Message-State: AC+VfDwzASPFiGpNEhLhLLuKJ2kPRQ+BO+Esb1xbFUZBNBpahC/j7liE JA8n+2AvuSDu7Wb7pG5kUZUGZw== X-Received: by 2002:a5d:6246:0:b0:2f6:25a6:9788 with SMTP id m6-20020a5d6246000000b002f625a69788mr16443692wrv.35.1683899548461; Fri, 12 May 2023 06:52:28 -0700 (PDT) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id i11-20020adff30b000000b0030644bdefd8sm23519775wro.52.2023.05.12.06.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:52:27 -0700 (PDT) Date: Fri, 12 May 2023 14:52:25 +0100 From: Daniel Thompson To: Doug Anderson Cc: Catalin Marinas , Will Deacon , Sumit Garg , Marc Zyngier , Mark Rutland , 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 Subject: Re: [PATCH v8 08/10] kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB Message-ID: <20230512135225.GA217187@aspen.lan> References: <20230419225604.21204-1-dianders@chromium.org> <20230419155341.v8.8.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, May 11, 2023 at 07:34:30AM -0700, Doug Anderson wrote: > Hi, > > On Wed, Apr 19, 2023 at 3:57 PM 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. On the next spin feel free to add: Reviewed-by: Daniel Thompson Daniel.