Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22477943rwd; Fri, 30 Jun 2023 08:28:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T3dI79pLwiMQIHoTZWKEwGFKBt1rNgV6RbG9WWdgURghHJCJo5uLHJLaB1CrjyaATYtyK X-Received: by 2002:a05:6a20:8425:b0:12c:d9cc:340f with SMTP id c37-20020a056a20842500b0012cd9cc340fmr2894731pzd.24.1688138921507; Fri, 30 Jun 2023 08:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688138921; cv=none; d=google.com; s=arc-20160816; b=x7nXiHzSe7C3MkW7q/oUn/6xqKMhi51KUBpoxeewf3IMc/DanRghm1uly/z8IYFvrv yH3C+cG8EoUSYlltPnpnSDdfK20elZe82WWZKuI+edRfVR78pbEAJDi+l9O2iSzDFg7i LggjmBmOF5hdE0gGxGT5Kw6+jgK4JbPU0yXP2oiEefCWOa1L6n62MZBsp1Nr2GL4s1p1 1Vo9k87N1oTwuuPaiUWu5+uLd0FDGp95FRUA+dCHEiPRQrwQoQbT6KsRQEdI2Y19vtk3 majC6zZkfJpCLOQlVbp35wOIN+jABm4JP0A64Vaav9bwTies0t1a9hM+zZUDmiuWAwZ+ wQGw== 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:dkim-signature; bh=txeggcAXbRmMDpa24OQ4hQFnGXTegi/WFNEbs/267Mk=; fh=e4Z/4AMwCMb27ZHtA0wxr5BfgV/P9tviPl9mDcDnJSw=; b=easy6otXNm5gl/+D2vEMiO7kbbVsd7cmyKoD7fPi7YRQr4PL//1+wmHdBQlj/dlg/u kwUHSB04l3AEaczCCv5scT7LXrIRBMVkOQ2oOpimlJrax8zgtQr1v0EXhHAQ6W5qC1lX n83tcNT7sG+PPTt2ui3Bo5DTnh0W4tUy80DcZYBGLJYNZLexUf8mQdBI3kK/eu8HX/Fa BpGeE2UENn+CYldy4HHDWMNluEMslxx6YZrt6HCqyKBArBiIRrEcjHD3iA0XFD8325Uu tlfYavCtsO3seEbM8VgFR55ZpmjKvV8Kp1yV21YiW0wEWSfC5oiwc9a3vx8p4h9TplqG yMzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zyhfMPGX; 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 n26-20020a635c5a000000b00553e8d95742si13011441pgm.654.2023.06.30.08.28.28; Fri, 30 Jun 2023 08:28:41 -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=zyhfMPGX; 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 S232699AbjF3PZR (ORCPT + 99 others); Fri, 30 Jun 2023 11:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbjF3PYo (ORCPT ); Fri, 30 Jun 2023 11:24:44 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD0F10C3 for ; Fri, 30 Jun 2023 08:24:43 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f766777605so3230436e87.1 for ; Fri, 30 Jun 2023 08:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688138681; x=1690730681; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=txeggcAXbRmMDpa24OQ4hQFnGXTegi/WFNEbs/267Mk=; b=zyhfMPGXkAD6EhJlJiOnavDdNQLlyKsqaPyQuT3tqsKmqxrDbWPaXnqU4ribLdFtlF LVMhBIuXwzCleZdHtXIxAGe3Hvy6F2ddGLuibXvlssx9omtgDWdztKaCkbNO9o3hyUc4 z32ZQBMD5wBT1Jz560HCRJPN12axNLjelwqkuIJrjS/rFZ1NXN9PqN/SuSfCl1zfCOB1 x3ivmtNzm1/0l1OKmRjVAr7nFae9llyXKw9jnsDTXCXf8Ovfphkanl2c85GawDBMfmOQ 0avV+5c3Kar3gbQqvcoaXL48AC68AvPohUSBHRiN7p5pNjouRChcrE090aPkv7Q/yYLi F+iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688138681; x=1690730681; h=in-reply-to: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=txeggcAXbRmMDpa24OQ4hQFnGXTegi/WFNEbs/267Mk=; b=O5RhXgPyaFov7GrHjW0Zj1RDO60sYzw9hyl69hwstVxziHqC3+XmBfk+uKKOh+6DqZ SWzwfV97PoJtypgUUZcfNyshEaIUBFllO1KibuuS+tJxo9fXSAbojQOo00AjfChoCvHR CDMDVT95uAXsyD/VtBrHiRueP/fiy3IGvvmU+W9j81yw5roiPG4sVcTfAhifuwzQYQbt UybkxBECnSScTU3hZmyFktEyJG8Txo6PxvvnRR6q4+YXywb3XL99k7VRLLWk/mIqRAHp 6VM66G9aiVlS31bR1xKU40w3EBGvcTxsFYwOeMLND3R1ZTRkNwDkfZoOP0NP4rdjDNqi 2BOA== X-Gm-Message-State: ABy/qLZ5U9uB0r8Jrv5xbK+cH7PzM3eMwA43xoyzY0h/Q7ytZyDmYimZ fc1wbOZywXY57O79XdKegvgKig== X-Received: by 2002:a05:6512:2815:b0:4fb:893e:8ffc with SMTP id cf21-20020a056512281500b004fb893e8ffcmr2950126lfb.17.1688138681214; Fri, 30 Jun 2023 08:24:41 -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 m13-20020a7bcb8d000000b003fba97b1252sm9313936wmi.1.2023.06.30.08.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 08:24:40 -0700 (PDT) Date: Fri, 30 Jun 2023 16:24:39 +0100 From: Daniel Thompson To: Arnd Bergmann Cc: Jason Wessel , kgdb-bugreport@lists.sourceforge.net, Douglas Anderson , Arnd Bergmann , Peter Zijlstra , Dmitry Vyukov , Kees Cook , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kdb: include header in signal handling code Message-ID: <20230630152439.GA2900969@aspen.lan> References: <20230517125423.930967-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517125423.930967-1-arnd@kernel.org> 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=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 On Wed, May 17, 2023 at 02:54:09PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > kdb_send_sig() is defined in the signal code and called from kdb, > but the declaration is part of the kdb internal code. > Include this from signal.c as well to avoid the warning: > > kernel/signal.c:4789:6: error: no previous prototype for 'kdb_send_sig' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann Sorry to be so late with this feedback! I got as far as queuing this up for merge before the penny dropped... > --- > kernel/signal.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/signal.c b/kernel/signal.c > index 8f6330f0e9ca..d38df14f71ac 100644 > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -4780,6 +4780,8 @@ void __init signals_init(void) > > #ifdef CONFIG_KGDB_KDB > #include > +#include "debug/kdb/kdb_private.h" > + Isn't is better to move the prototype for kdb_send_sig() into linux/kdb.h instead? That's what other kdb helpers spread across the kernel do (kdb_walk_kallsyms() for example). Daniel.