Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2977229pxb; Mon, 25 Jan 2021 03:55:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVaYVTZtzGItrwKOY35pqT9JP0sqV7lQ9d3OX05GUQen5yBGw9FQg7pme26Ql30Nx1XxoM X-Received: by 2002:a17:907:f81:: with SMTP id kb1mr135352ejc.412.1611575711388; Mon, 25 Jan 2021 03:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611575711; cv=none; d=google.com; s=arc-20160816; b=LlFUf4DLGL6AH957RFQ3KZMqn3vRqoDOyq/MGtGJfUF3bICwe+ZpJrqu/CaSMRhI/8 y7mzCEDd+EjW6MAODVO7AZJ+QxtDFLaKKaDYd3Ba0+WjKzLautqpcxVomAvVS0DH7kKK ASCJV6xjiABuadC1DNeIw30bo1v85IstXp0KKDV9J+hP/2bzcNXfFLtGfhQt8b3mjAWf 6yyUEZXZ/61AlbBvFpNkubT4WOMnTEAKJctmEb4AHzw/SkZ1PeEsZzQM/75NCcJJwrGR W+dOL121rk8gDQ1qv29Ibo9D3LrAFpzuODKG/ikYoqsg+KTSSa4HSSs+uLamUC2Ou1Mr dGyQ== 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=5N3+ddZ+UprxFCv5SFv09Xet+R2UhwSGKGhfnHT8k88=; b=YAKNa5i7kBSbeofor+3QHkZvnpvVHVQHV+8OSUoI3osTfhWAzoJggmj1sJcGmt0XSZ kgA9KXCtgZFEezC/OIFGAziV5OtdyKdEkLnOlCHbG7f4fBU1sXc/gnuYiU9xHuknk4++ +yOotoASai6g6AeJ9hsRosXR5mGx26mdSdooR558cIoMWwWjKEPIco7KvjphoVhDzDme PZLz/7LLe5zPE1lFqf+if3uo2sX0C8kqLr7x35sFaJQY0kFfIRG71MiYEbiIxMVkD7rG VpG+KMzpD/DgjYPyBrXZm1+FmNvlkr6yPQUpS9SEr82xGOaYVe3k5UtsJy/a7pqYiUPF 3GPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oNjWfI52; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si6082095ejk.328.2021.01.25.03.54.47; Mon, 25 Jan 2021 03:55:11 -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=@linaro.org header.s=google header.b=oNjWfI52; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727756AbhAYLq2 (ORCPT + 99 others); Mon, 25 Jan 2021 06:46:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727748AbhAYLEx (ORCPT ); Mon, 25 Jan 2021 06:04:53 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A0EC061797 for ; Mon, 25 Jan 2021 03:03:15 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id a1so11853341wrq.6 for ; Mon, 25 Jan 2021 03:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5N3+ddZ+UprxFCv5SFv09Xet+R2UhwSGKGhfnHT8k88=; b=oNjWfI52xwCta/21UEjtxGJae3VHH5Lx8WGtrM54mHMHg1P6pFuFOaoFvmzXy44aBF Ofp9tVM3HnfZrr8rYgsvffl9Gq2Y9D5lCx1WNXbH1aIvMaD5qcAU+0q9b1dWfb4q/G6r Eblfhk4nDEfEMfBllM6Uooq04sHoD2mLNUZQhL86Y4gCg8cyEvJgLk7xkQCCujiGgM6m m7pQEPIaWNU/f5T93mb0BXX7feS/Nu5c4JlrNwauNTb6K4FHSHedfqsfX5NmYG3xyhnE HyNN4qEnIRQQN0XazwQRehcXe6mXsjaZAL1siO84rw5r5lSvsR/4oerdAnpoT0QOkfGm MCTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5N3+ddZ+UprxFCv5SFv09Xet+R2UhwSGKGhfnHT8k88=; b=i8XRrA+G2Cd4+noliH982NmVcj/U9uD4jK0BzvoIzG+o326wCBImmv1NweXErl3z4o 5B7nEmo6ZVWyUOVE/5yy4GvrQF01rhnVH+nJnbhzi1b8sosCTfcO0jV9sQaA78YhWtMf jhSoPTikPeeb/5Qah28Id+lAc5SYurMr01DV+hgaSEMPUlPyee/Pw9LzU6VokpF7o9Cg d022sOHOBrdCRBU6rfl+WurvJGQRchnNKk0DJKPw+QmG5a5pUibkHz6hFdK5S81AH8RV Qt0dxXCpGyysz9t+UP+7NjFeAOvkJOBmZd7T8A1duzbzNZJ1hTZFl8ZV1VMILWZibRsi DtTA== X-Gm-Message-State: AOAM530ncnGDzLcfderB3gbyd6HVeiGEXuWRRjCJ5l+b6Otr0O5ULSeV 8pkYPf1HPHpFM8LtcdFUazC1YA== X-Received: by 2002:adf:dd0d:: with SMTP id a13mr266235wrm.143.1611572594151; Mon, 25 Jan 2021 03:03:14 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id d26sm1212479wrb.47.2021.01.25.03.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 03:03:13 -0800 (PST) Date: Mon, 25 Jan 2021 11:03:11 +0000 From: Daniel Thompson To: Emil Renner Berthing Cc: kgdb-bugreport@lists.sourceforge.net, Jason Wessel , Douglas Anderson , linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH] kgdb: use new API for breakpoint tasklet Message-ID: <20210125110311.pmqddpkh2c247tmx@maple.lan> References: <20210123184237.6970-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210123184237.6970-1-kernel@esmil.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 >