Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp944453rwr; Wed, 19 Apr 2023 15:58:49 -0700 (PDT) X-Google-Smtp-Source: AKy350bHN5FWuWMLfAo3vSArb6lV+q+zXm8ZVa3uOExmF+gqAaCKOddRbNkL7UyrEvwsZ+tPrJ01 X-Received: by 2002:a17:902:7204:b0:1a6:db0a:8005 with SMTP id ba4-20020a170902720400b001a6db0a8005mr5309529plb.68.1681945129034; Wed, 19 Apr 2023 15:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681945129; cv=none; d=google.com; s=arc-20160816; b=ow1I6raj9iOvMH6GvgArLwXzmi7HDXAAWuYxdITFWVNwhfeOh6qP8i28dJVSI7GCOk 3UOjbHRIE/3WGlyfYZNq+1O1txs5W9RM+8AihpbfFGCHGaxTq66yzfHfts1UDYj/sSb0 /IE6VyxCobjo7di4dNtQojDf0HWZuYKVBQlQJ0hkBa4P45CjsXZhnYUe2JPIkL/NU7Pw Nd+33g/x0tRRSFoq/WZKfi9umgpKyZTmwKD+afbDXanuKT+ld5esM4Tjk4rnb6kgozXo OWjcYVM5d1AWXmWFnPu1vokKUEwzRnCAlnLqcktm1w9vM4Ak8yyyVbnbSBp6flgFnzYc sBOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4J3L1PRmmJQLOwITbbf3gVcO1wn/5q5E8+agGJxBWhk=; b=QsQwuOJ4mA3hRUp2FAuIJfEOw0iHBajAfIz+Xv/eUcb4xGfbqvVpAn4JMxIwRjgaAy vd25kG3yzLI+vZvwkwRnPtAr13hSyZhePwPympzattZ6c/UrpR9d1hggmiW0kGprYD54 8eqi+20TOzd7YSaseaoj+z72+F/S4PNKmQjpuLdylgbem26zYPSVXhHilM6Aw7Zv/M5m 6S0WzKGNy5vZ/VjkWHaUWsIiXGTSM/8s+Tf1Uuy0m9hJIHyEiaJY7HVoxfQ0/rj9N+NR EL2Z8sseiMhRUyhs2RIKQu7FIhwPbx14Ov7eX4iWJmh+Dt4ikjkkaW7J3uiQsP6hohMq SXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E5o6owHA; 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 j14-20020a170902da8e00b001990520ebccsi18699666plx.587.2023.04.19.15.58.33; Wed, 19 Apr 2023 15:58:49 -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=E5o6owHA; 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 S233801AbjDSW5x (ORCPT + 99 others); Wed, 19 Apr 2023 18:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbjDSW5e (ORCPT ); Wed, 19 Apr 2023 18:57:34 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BAD618C for ; Wed, 19 Apr 2023 15:57:20 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-52091c58109so277064a12.2 for ; Wed, 19 Apr 2023 15:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681945039; x=1684537039; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4J3L1PRmmJQLOwITbbf3gVcO1wn/5q5E8+agGJxBWhk=; b=E5o6owHAi94AUxWQV23+WIE/5pp1O4WuHDRcksc7HsdzkCojeZYEW4oz7qxqAY/nkq 9DI77u+isSPjvbt53VfxixNIV899AQ0S/99LKwj3MnpI1L8BLugiY+qmlKl1Vf1HKX2L cXmTN/MLMsxxiL4antF9TsJfg3q474IVB82yw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681945039; x=1684537039; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4J3L1PRmmJQLOwITbbf3gVcO1wn/5q5E8+agGJxBWhk=; b=B3qLt5BsagvAQyp9/LZzHgbJEzfgYUhS+ki9mnuwcUOyugVkvYHjxjQyZPSbS0e3Cj saCoDcnAu9uCytUjtt3YHdgCA6+IrFctLhRjAlozwBcY28UJmogD4M8gBOyy3sC5x8pK Yc8Ys+GnQqvuVjoFuhQ/GRWSSm4LIran1SXsYsSAxT0Ou8sXBZfa1FTbVncVuu1pIhIB NukI/iPJwDMeOjx3jxz5h8bgpGHhrVOam4A8rMI9B/c8aRo6/8uTJztYlB0xMWEPStzk 4wYlMcMysLUgNhDA5CA/TdqS77yQddB6xDeJdEhCklhAh1lfiVJfvpLpRF4acI4BcLvT 7xKw== X-Gm-Message-State: AAQBX9ffnFhRxgbWENOauQFXhjSX/OVjY1w2+xhtTmU1VDEf5X6iqfwm /CFdEU7NgNi5C2Jsl+FS7DFq1g== X-Received: by 2002:a17:90a:69e6:b0:247:2680:4090 with SMTP id s93-20020a17090a69e600b0024726804090mr4649880pjj.11.1681945039604; Wed, 19 Apr 2023 15:57:19 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:8b1:fa03:670e:b784]) by smtp.gmail.com with ESMTPSA id h15-20020a17090aea8f00b00246ea338c96sm1847101pjz.53.2023.04.19.15.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 15:57:18 -0700 (PDT) From: Douglas Anderson 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, Douglas Anderson , Jason Wessel , linux-kernel@vger.kernel.org Subject: [PATCH v8 08/10] kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB Date: Wed, 19 Apr 2023 15:56:02 -0700 Message-ID: <20230419155341.v8.8.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog In-Reply-To: <20230419225604.21204-1-dianders@chromium.org> References: <20230419225604.21204-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 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; } #endif /* ! CONFIG_KGDB */ #endif /* _KGDB_H_ */ -- 2.40.0.634.g4ca3ef3211-goog