Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2131037pxa; Mon, 17 Aug 2020 01:23:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoDp1qS8iEh5tX78yNYaBvkKPJpHLeW2CAHyVpwX7T5bxGXuabw0iK0FdtjWNt+fZPWrkH X-Received: by 2002:a50:be82:: with SMTP id b2mr5310183edk.303.1597652582549; Mon, 17 Aug 2020 01:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652582; cv=none; d=google.com; s=arc-20160816; b=zjbDzoUctfjEg9vJvMTevQ222+HDfTq63f8bmpbWHBG4XDWQyNwvLGEpRUi0dQOHOM 8rlwhit8YT8iIH74qq2IhNN5EMRmSWcwhi5VkmuRxsFnfghvlhCsan+krdwx1+EKSQdO aWwF5a2G0nX1pz774kmHJ669NwrR3OZkhTGqgv79FDPFIzXgQBGw4056nQz+WKmZWGnA idTkrDikIp3CPX4K3rlmcZz8ShHqN1YMb5+W/MHE8FAybcIRZYybC6hIslL46razPQop x2R+8gr2C3Bft80CSFTNi7r7VIUpu7G4Yde4uH3UeSy1K9JV7R1qwFC3x0r4NwN7an/v Vl0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=otxsu5o9cde9DrIHOXDNXEgKF0A0Yvtv94mFiTmu/m4=; b=CDSmbTV+EGOZZmo05OPdQWiaqrZDvPuU5NvmLI08JQL6Te7lw7UlStuYCgz8P5Hfcy hibMDhQ9LfR2xs0rf0lSjOGTKoP2cSOxJOo4rjRFUakVvEW+1gc3LnvFt3T5ioiG0Poc W7zAy53zb0+gglOn4DDASmSKJdceM2C9cr67WHOZIRDJalVgK1ZzXcEmjNKTvCOfMquz lhCWOJFt4e3S33h82StrRqxAx0A9aYpghYFqwk+CpWVHcNJnUiwgKMXtxElwl4zCv3yf df4aQOB3HJOCrwVv4GeQaeClFYZoztdj4tzqLh1X1e8RKwZt7Q+ghydpeulUQPhUB58W kwGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hkUsh+NV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp26si11012107ejb.118.2020.08.17.01.22.39; Mon, 17 Aug 2020 01:23:02 -0700 (PDT) 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=hkUsh+NV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728257AbgHQIV7 (ORCPT + 99 others); Mon, 17 Aug 2020 04:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727997AbgHQIVy (ORCPT ); Mon, 17 Aug 2020 04:21:54 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F51C061388; Mon, 17 Aug 2020 01:21:54 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id t11so7138868plr.5; Mon, 17 Aug 2020 01:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=otxsu5o9cde9DrIHOXDNXEgKF0A0Yvtv94mFiTmu/m4=; b=hkUsh+NVWHTVxA9gVlu9/qoblBacsCvQCYPap4IIXPebOmgy1buaRFS5MjMwwL/9LG F2rokfNtHBS5mqJCekyQMEs1BVsuUJwOIfDxfDCIfulCY8CZCoXgXczW9lGtc6jUXP+R D2UG1eEspP7d5pShkpimqH/tBBY3W9aIvMSnW4MjDvi6eLFCsrvqMoV+dhfOaDQkHJhE Vj+3g6Vdc2GEIxYxscvN1e1o5r0pmFiwJ+THCH/i26eXAHF3Ucxrbkiu3cVtTT3ebk6t c1h7/n1jQVhAaNeUh9L9QrMkqmCl9HbtTVCztHLnjSY3ViP1SjVBblY0soJKQzlajbPa qFMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=otxsu5o9cde9DrIHOXDNXEgKF0A0Yvtv94mFiTmu/m4=; b=ItN139fi+tTTNbbraYxa+d/7e1wyf9YHgr2DUafDq8MfAozxWhY3X/7DzYYsNoHuS3 4BH+EPXzqlOBwJOl3EthrT5RfN3Egm/jgDbq/V3P4CYZLExhWcca7C6umqsXcFFuliDj kIlciztLkvlMt4l+P96xswD4y+ntD/28O8EJYc8q2Mi4CH0M0e7TaSZfIhOQhZ3JFE5w 9ubdsUv5++aiUy5soy4qfGdHd9g2AX2enZa49j7Tvu6JvLlVLAlB85wnOJlicpVWM+oM bS2choobuEsYE/h1SI305lLHr48Gmy1XrbNxhudfbxyVTiRHVkQJpV1VfPphfvLcQgBT S3WQ== X-Gm-Message-State: AOAM531/JDGsnUdptLJOP/PzijQ9DW7BIUp28g4z4MYvT9qwKqeQOazT 5Wo3CbwOig7ySt0Z6grzb78= X-Received: by 2002:a17:90b:8c5:: with SMTP id ds5mr11636521pjb.110.1597652513772; Mon, 17 Aug 2020 01:21:53 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:21:53 -0700 (PDT) From: Allen Pais To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, baohua@kernel.org, mripard@kernel.org, wens@csie.org, thierry.reding@gmail.com, jonathanh@nvidia.com, michal.simek@xilinx.com, matthias.bgg@gmail.com Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, Allen Pais , Romain Perier Subject: [PATCH 25/35] dma: ste_dma40: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:16 +0530 Message-Id: <20200817081726.20213-26-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817081726.20213-1-allen.lkml@gmail.com> References: <20200817081726.20213-1-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/dma/ste_dma40.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 21e2f1d0c210..ec4611ae7230 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -1573,9 +1573,9 @@ static void dma_tc_handle(struct d40_chan *d40c) } -static void dma_tasklet(unsigned long data) +static void dma_tasklet(struct tasklet_struct *t) { - struct d40_chan *d40c = (struct d40_chan *) data; + struct d40_chan *d40c = from_tasklet(d40c, t, tasklet); struct d40_desc *d40d; unsigned long flags; bool callback_active; @@ -2806,8 +2806,7 @@ static void __init d40_chan_init(struct d40_base *base, struct dma_device *dma, INIT_LIST_HEAD(&d40c->client); INIT_LIST_HEAD(&d40c->prepare_queue); - tasklet_init(&d40c->tasklet, dma_tasklet, - (unsigned long) d40c); + tasklet_setup(&d40c->tasklet, dma_tasklet); list_add_tail(&d40c->chan.device_node, &dma->channels); -- 2.17.1