Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1946204pxb; Sat, 23 Jan 2021 10:46:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8wdc4UsZqz8+EAyRxH2HLE6/YMUTiRYe1WM7DV7LKXyZDWZE3q4flYN4t9SrtMDAvgiId X-Received: by 2002:aa7:cdcb:: with SMTP id h11mr7832233edw.237.1611427561567; Sat, 23 Jan 2021 10:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611427561; cv=none; d=google.com; s=arc-20160816; b=VLWQX72d2a/T38KGknN2EEaZb24T8D8Lz4akk+gU5Da5y1wn+etbj4jfdkUHS0MZx+ ld0ki6egpJEVS8bL/mKgIKHtA5O33cf20a8gKO2JU4pTkWHXGDt+4g7vkbAy0DdMQZW6 JGCAPL9NOTM+FU7LBjY4UeVCRSp/DWtLrSoOzXNRfJpug7AXTi15k4PkKfK0qm1XpjXd XB+LtFJaUfeiwNFNtOOtFZOnYu7iAq+hKHX1RsUZRCZgpaRof++brqtsgyAitNbdhj5A aDRneE2BdCUpGIeo5naaZVJ8ZFfFIxaTeY6FXguterPg84TU9GZ9m+fBbQ3OxOhZTmFa v5UA== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=HtWUULD+AqAM7T9i0ash0maTbZaHA0HTT6y5oFghtDY=; b=MtJYp+FTF+WprBYPe2wxs2lgbefjDnEhrL7KfxMh3pepzjABPybq1B2pHUN/EtG+oK aebUVX8YnECyUhEXibwKgIO/GwKsN9aNTHMYURtrCB03Iwd+nD1mZq+OHB2uh2XBUssV ZahcOifToy3LH1OoF185HmV6L6I0Gj0sRPgq07pCIAjl9Dg4/e+uT2JSax4HAh4nxyhu WiO4R5p+ESmZwDybf0aMXpbi37SceLPZc/Yh+S84liAm/6BsFPNcI3XX0SXrUQZ1Af8z IeT9vzydqxO+XUgtDYI0fa0cX4QQcHOxs4l73wpwByeGr3/JQcY8bEHQcKg8cyOfgxuF PgFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cXczeMGf; 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 p31si5649094edd.471.2021.01.23.10.45.37; Sat, 23 Jan 2021 10:46:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cXczeMGf; 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 S1726215AbhAWSnr (ORCPT + 99 others); Sat, 23 Jan 2021 13:43:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbhAWSnp (ORCPT ); Sat, 23 Jan 2021 13:43:45 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF55CC0613D6 for ; Sat, 23 Jan 2021 10:43:04 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id n6so10408096edt.10 for ; Sat, 23 Jan 2021 10:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HtWUULD+AqAM7T9i0ash0maTbZaHA0HTT6y5oFghtDY=; b=cXczeMGfY9s9XYao4Ximr5BQuDurR5O++FPJ+CYgI2f4meOT9bUkkX/WkV34EEYYyI ipasFxgoRp66w6x2D7kThbWUTB/8PmKGF8rpEXshlSZnGVQL5hpK1A9jyMiTHZDTihXu mbDamduLQEExNeoX7rvfxsXyep38S8ulfE6Xew6HfAjRk+Rr0xdc4FYPUGMWQlftjuEr BEnUOvEUrU8y4rkAuSBL5eoUMOlVvPpZYCQhnPBN9c+7RHQ5ApYDu5/ul/RLi650ETBF ap/3wb8wZB2ddisIXUbHgNb6uQd6kdYOBFJ78qBt9o7XRDTsRZOrQsfQjgpncUBosolY gZeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=HtWUULD+AqAM7T9i0ash0maTbZaHA0HTT6y5oFghtDY=; b=Ard2IQX0qpbnFr/lS1w+5BnOR0PvsHz+yALFXkbUUiOKew/Q8knM40etWkTdeCsoWe s9eFwokJgb08MfIsSWuqXebbeniP+nD10z5hwlAw+28AH2HecqhH/iGKTpIS9TU5j7vh GKTkkTwIKfEW1fqAy5kGk1yBy4JgXsq0cqGkSe4etBw+SSagz+zwT/HRfhX+1/9SuWZw i03iAHewcdAlPDkT/7huy+ypzeK+FNAmnc5i7qUD1PM42OsOgIxzFfWYc1itf7Knfrz/ SOntVAX+uYL4iauEwNNDvdCtnXmSda+x/2dGnMp+rVSYxyQIf/PvAEk00gSw9bgnJeEc psaQ== X-Gm-Message-State: AOAM5306d8zPDQNWPT+1VKo3VBrvxvKldZOmJ8LPPhuCxtwsnl1jqbLG ozwEUZBrYv+NxadApPcgtQk= X-Received: by 2002:a05:6402:5112:: with SMTP id m18mr7857015edd.129.1611427383695; Sat, 23 Jan 2021 10:43:03 -0800 (PST) Received: from stitch.. ([2a01:4262:1ab:c:78d8:2ef4:5ead:12bd]) by smtp.gmail.com with ESMTPSA id y59sm8003109ede.59.2021.01.23.10.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jan 2021 10:43:03 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: kgdb-bugreport@lists.sourceforge.net Cc: Emil Renner Berthing , Jason Wessel , Daniel Thompson , Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH] kgdb: use new API for breakpoint tasklet Date: Sat, 23 Jan 2021 19:42:37 +0100 Message-Id: <20210123184237.6970-1-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). 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