Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3584683pxb; Mon, 25 Jan 2021 22:22:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyfXoG9Jrt2jeJ9H1d2B0QZHvmdmzNA1fbQeuj/Fetq3eoWxqxCCkDOoqNYfgY/Ck8OWCO X-Received: by 2002:a17:906:2315:: with SMTP id l21mr2584018eja.183.1611642169434; Mon, 25 Jan 2021 22:22:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611642169; cv=none; d=google.com; s=arc-20160816; b=fvgzyimB00huMUPLDi9VaOXoIgT3Io/ZMOv3Zk+6i5M5g0SZNGvIwxHeRd2Pxi+C2i iFSzFcyGZWCyrIf54PtajvAJlw64XGsJ671STOYf7O4/maZdfXME8mxMs3RiImuPdA9Y hACQLaHqyocQrVWefuJY9v/7nt1hw0BbbP10CD85PON/hS/DtOBL1/CS/GXaC/+5ea95 BUmJ1UMc3HORuI8faX/lD0f+WC65rHcpw5gUIDo1+2ybT/xqnJKCBtOncqox4s0qz8mV A/WqiQoHqhzjJkHydN1jccDhK21BEK9l9lWEbhDpr36f2MyNewIzmIL1igXKKkITXBsW hVjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=mybA+IIkOKUfsPE8aZqJZA/LpcRLze1XRIRef0pzfVA=; b=CJMFkYtytiKrOdQvOoJcggVlvMncdgq+UKwJITUxLLEdQ2gtAiusekdQHJ4oFt6HHj jdIEqag6hmd68pa2KUzFP5TFd7V7pMoR03XwaC7UFmRQR2KX+Q86ouuzJyD7nt+tjmYY v0B+n4DMLye7WAwoyQblEh+6Rho6ypflKwVMgvClEmZWngglAR+FgSF78FfWp/Ixhpej OyuJB2o8p/EK5tu+BrfkSqxs1qNlEOFUMGb7Hz1TnHS/eLqUzLX1bfrMsA6FDpJkY1PD vzHKZipZCUN/QwHdjo84z2XI7t5GkZtxC/jibTaAvY/lbn+wIYIf+ZmHnUvOcHM9LnO3 BNzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si6931955ejc.207.2021.01.25.22.22.25; Mon, 25 Jan 2021 22:22:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729976AbhAZGUT (ORCPT + 99 others); Tue, 26 Jan 2021 01:20:19 -0500 Received: from mail-yb1-f179.google.com ([209.85.219.179]:37022 "EHLO mail-yb1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728780AbhAYNZu (ORCPT ); Mon, 25 Jan 2021 08:25:50 -0500 Received: by mail-yb1-f179.google.com with SMTP id z1so13282501ybr.4 for ; Mon, 25 Jan 2021 05:25:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mybA+IIkOKUfsPE8aZqJZA/LpcRLze1XRIRef0pzfVA=; b=tQxod7v4JBW69hD93apD6vjttnsEATqPy5IfPz61OQSh6mgfowxYO08i4L2s+uU7lA C+2geU5XZ0tjjV6Xk77qRObAqVtBBRQ5Es+zSmbIW+lLANTlHf088mik3LfsxOwKXH3w mN5+0qpaqKwabf3PzKSbK2fvF+ZCIGwmx0Pc+gu8aE9TnEOGa61QQaYtnfEDxsDIRLHR kA6v/n5DbXfb2RCLAnDhRT3n6dJm7PrEQPkOgrZyMKtwX5jdVdQZz7eV53OHDoA2zLmN 6z4CJu3XCSKGg34okhRSnPE3Csk7n1vEqO6C9nU/tHKGzbcSmJzxCdcPII2tmMMgn4Kv 2CkQ== X-Gm-Message-State: AOAM531mDKO2vBqnJbTb5CCuhhBrvaDtyVKaCS0/fG61S3Vd5tjUi25r txybJP8ANFCeJSXj3A3bQPeub6Kw8Izzn8eDhh0b9/Eb X-Received: by 2002:a25:ab8d:: with SMTP id v13mr150736ybi.479.1611573942420; Mon, 25 Jan 2021 03:25:42 -0800 (PST) MIME-Version: 1.0 References: <20210123184237.6970-1-kernel@esmil.dk> <20210125110311.pmqddpkh2c247tmx@maple.lan> In-Reply-To: <20210125110311.pmqddpkh2c247tmx@maple.lan> From: Emil Renner Berthing Date: Mon, 25 Jan 2021 12:25:31 +0100 Message-ID: Subject: Re: [PATCH] kgdb: use new API for breakpoint tasklet To: Daniel Thompson Cc: kgdb-bugreport@lists.sourceforge.net, Jason Wessel , Douglas Anderson , Linux Kernel Mailing List , Davidlohr Bueso Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jan 2021 at 12:03, Daniel Thompson wrote: > > On Sat, Jan 23, 2021 at 07:42:37PM +0100, Emil Renner Berthing wrote: > > This converts the kgdb_tasklet_breakpoint to use the new API in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > > > The new API changes the argument passed to the callback function, but > > fortunately the argument isn't used so it is straight forward to use > > DECLARE_TASKLET() rather than DECLARE_TASKLET_OLD(). > > This patch overlaps with a more ambitious patch from Davidlohr. > Perhaps you can join in with the other thread since the discussion > there is unresolved. See: > https://lkml.org/lkml/2021/1/14/1320 Ah, that's cool. Getting rid of tasklets is much better than merely trying to get rid of the old tasklet API. Please ignore this patch then. /Emil > > Daniel. > > > > > > Signed-off-by: Emil Renner Berthing > > --- > > kernel/debug/debug_core.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c > > index af6e8b4fb359..98d44c2bb0a4 100644 > > --- a/kernel/debug/debug_core.c > > +++ b/kernel/debug/debug_core.c > > @@ -1090,13 +1090,13 @@ static void kgdb_unregister_callbacks(void) > > * such as is the case with kgdboe, where calling a breakpoint in the > > * I/O driver itself would be fatal. > > */ > > -static void kgdb_tasklet_bpt(unsigned long ing) > > +static void kgdb_tasklet_bpt(struct tasklet_struct *unused) > > { > > kgdb_breakpoint(); > > atomic_set(&kgdb_break_tasklet_var, 0); > > } > > > > -static DECLARE_TASKLET_OLD(kgdb_tasklet_breakpoint, kgdb_tasklet_bpt); > > +static DECLARE_TASKLET(kgdb_tasklet_breakpoint, kgdb_tasklet_bpt); > > > > void kgdb_schedule_breakpoint(void) > > { > > -- > > 2.30.0 > >