Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22544089rwd; Fri, 30 Jun 2023 09:15:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFnje+UB1sqjNaOuit3nXG+RbwMYB+K3FXhAbNgNN51fNyWE0rO0NPN/PLfAV6DQDFO4Iv2 X-Received: by 2002:a92:7f12:0:b0:345:a818:ed3b with SMTP id a18-20020a927f12000000b00345a818ed3bmr2491165ild.7.1688141752064; Fri, 30 Jun 2023 09:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688141752; cv=none; d=google.com; s=arc-20160816; b=fEhIbFA9d714uRNl6WcQ5C2QP1RA/CXWCFaLo6WFNh/QxQmsyIypny6TcWsl+rw2W2 3pHUSJDpdRjukwBGsbkz/EtERVAzFjMP1y3WFGkx24QJJMQIQDmx7UwHpatUP+1VV46m 7Dh5nDRQO0PLPpsgpJzggfQ/dS/TyheGhOq6NHCsj0/SiHEcILGatNGcnHbIiNm31yt0 eTXzC/X9gGePTzQtvXVsexPfFZyfLQ2KFPmPuylxGGwwECMbGu0vMqJ2DME2iohUvLwP vQznPITL7x8iDe2VRGAbw8h+3LeTobV5H0JKDjSltrubD4Fc7e8vxuwLQFii0Gx/TZgM daxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=upLBwBc2dBmHKX9v2pXFENlWMqDWFCIobcQ0HEfLYik=; fh=3eofsbONuucJvITzQVw0qPPD2u44gPYUw1zpbtZwQWw=; b=B6nsJm5MsJHVJ6guUAbr0LX5zIkfB/wrM3Se9EUEk54sKd5y2kySIChRcgA9LQCE7V 8pfiJfGuMyKt6l7VmpCXZYhb940QqqL1y1szd1TmolgIJypSJNewjx3jjifaxL7FBsqi g/08l+qFCJqPRe8JJwMoAnZ59iMJPdaltQ8Lp5q/NGk8Wo5CEbgqwvqfXwO0OuYY8p8P wZrNHT+EI7Qghvflc/C28YTN9iWBQEsdUpR00JDKLYQGsNEIMGuQTomd3eo/tmIpydge kCNv4FLdsg4KWuiaq2u7SI9wDrHuQLAwh8wxr4bLiO+m/jSDmoI0jiUx8AjEhz804Lup k9qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=IoTcM+BN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dSAPUWjP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y125-20020a636483000000b0054fe07d2f40si12828047pgb.229.2023.06.30.09.15.32; Fri, 30 Jun 2023 09:15:52 -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=@arndb.de header.s=fm1 header.b=IoTcM+BN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dSAPUWjP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232665AbjF3Pfg (ORCPT + 99 others); Fri, 30 Jun 2023 11:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233140AbjF3PfD (ORCPT ); Fri, 30 Jun 2023 11:35:03 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EF2BE5C for ; Fri, 30 Jun 2023 08:35:02 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id BE81F5C163D; Fri, 30 Jun 2023 11:31:22 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 30 Jun 2023 11:31:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1688139082; x=1688225482; bh=up LBwBc2dBmHKX9v2pXFENlWMqDWFCIobcQ0HEfLYik=; b=IoTcM+BNU5go7enV0u JT9XMkqfYa+qdnubg8XHBYF5i2NXlo1fPOir8T9gSOmYLYMpuFSxn3GNQB3AGn+s 7BfpTods5F9J1kJLl4nO3S61LUPhcF8jfTyqwB04PFuykuZHbHQzPLLzIpKJwqsY hBBJpbeQ0+GTse6FIeoTtMMOYvX2Wdbp8itXv7Q4u85pghNbUCeLexA79b/yEXBa gChy7+PUrSV/UlYFI1hWbWMoYl0AebKqaEQfVHAu9u8HP12coHAnFnlB81WMvVJ/ BnRLGVToZB8scM6QJXWLEuZAx2IuhvYExOJUo1NopgYSaDJ3rUFlOQNqx8jaCGD/ Zhow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688139082; x=1688225482; bh=upLBwBc2dBmHK X9v2pXFENlWMqDWFCIobcQ0HEfLYik=; b=dSAPUWjPp1SYx2dhvpDc6kP0C4o9a W0kiwUjeRa6rut+EfGy3P42zbh922ribXMJL+v+gMBV6g7YIHyV0LR5X+kGe2kpQ eLw8A+ar9zyIpRgI/nin3JlfuNFLpnIwdaHIzSDeEV6uYXns8HDuKaBI2YMzjb+c xAYJcOcRvb6oDTMb5iCQCLsr0gcJz+reoQmMio5yGRO6pwKZlRnGdmOvOsHJr2l9 ZLwm8DcOKLsDabMw5s35yyXcPo9puH1MadTBf4iTeXUK4PxWMt5X2P5Es/gle9gE JO3gxF2j0JogtIhvBO+/zMmbU/uZwuEUDbVEs4KGAHBfmmBpTKuM+TEyw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeigdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2B7DAB60092; Fri, 30 Jun 2023 11:31:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: <51b8b3c2-f4ac-454c-acde-e1d136139109@app.fastmail.com> In-Reply-To: <20230630152439.GA2900969@aspen.lan> References: <20230517125423.930967-1-arnd@kernel.org> <20230630152439.GA2900969@aspen.lan> Date: Fri, 30 Jun 2023 17:31:01 +0200 From: "Arnd Bergmann" To: "Daniel Thompson" , "Arnd Bergmann" Cc: "Jason Wessel" , kgdb-bugreport@lists.sourceforge.net, "Doug Anderson" , "Peter Zijlstra" , "Dmitry Vyukov" , "Kees Cook" , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kdb: include header in signal handling code Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Fri, Jun 30, 2023, at 17:24, Daniel Thompson wrote: > On Wed, May 17, 2023 at 02:54:09PM +0200, Arnd Bergmann wrote: >> 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). Right, that is probably better here. Not sure if it's worth reworking the branch if you already merged it, the difference seems rather minor. Arnd