Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2129686pxa; Mon, 17 Aug 2020 01:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC0qUrAx6SDQT8p4TuMGb/nJ8iNwv13bU2DX2pvjzeQcfmkUW57+o3wF/saaHayryGctJB X-Received: by 2002:a17:906:9618:: with SMTP id s24mr13991999ejx.53.1597652388787; Mon, 17 Aug 2020 01:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652388; cv=none; d=google.com; s=arc-20160816; b=y/WGrsLzFk4AS1GYpOZpUhd9JgYH0jpFb5qZMFL7zYNcvkLpDib90dywPAoKKaZknu yHGspoSR2SwNBUa7kLUArdfjgQ56H3ngGHT+b/CgocNKXpGKsorNC3u9qSNyKHfueLfp 6QcvrKIxAp3HGkdxdu84FD4UcMsButS+DzHCpY+L8UzdATfHmjDeWvIXNlkQ+/TdpBAm R8tiZbfchSoLFpin6EQrM1p3jnDV2gUdMadgg6/OQuHGXq2B4J2Bvmh8R7SJLFuM2Uyn Def1cYfFppGBlTrZ9/lJgPfQwqMsk3B4djpVIebUhqPU+B0wQFKmj4s4sLrTUhzT6CgJ IpFA== 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=McUFqZfFTy7mHwbw8y2LjePaGU9tqMqaDH3Woad5dgY=; b=yh61fP9J1MTJvY1f6SLWNmomaQ0mAMsXsnbXiQqLl3eFmAum3R2sw007PdC4UobdGE 5tEZWLYVSfCn5CrVMD0cT4aQVj63Chauk0152g7SnCKYZt0rgwT96aJELblcyfYVWfqZ T/za9Zg/6VmO0lLwBEQ5G192qrhrumF5OmO30DYFBq9U1j7XCxCjjy0GwZNA+l1Iqh8w kgHtW0Hd9/oNQ25J5OLTTGtMWdj0zvHRUB5rvl3aDJKH/27sOPlxEEA+AOzq+dCRd+Z/ 0+tNRxuPwkISF7gfy4E1nnBl88jmzcaVX8VlWOcH516s0jsiqORFCsyNZfC2ARcDjDCf 9PLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rbGPv1Mo; 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 y23si10976216ejd.544.2020.08.17.01.19.26; Mon, 17 Aug 2020 01:19:48 -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=rbGPv1Mo; 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 S1727896AbgHQISj (ORCPT + 99 others); Mon, 17 Aug 2020 04:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgHQISf (ORCPT ); Mon, 17 Aug 2020 04:18:35 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 201B0C061388; Mon, 17 Aug 2020 01:18:35 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 74so7841528pfx.13; Mon, 17 Aug 2020 01:18:35 -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=McUFqZfFTy7mHwbw8y2LjePaGU9tqMqaDH3Woad5dgY=; b=rbGPv1MoAStGdHictLBw1dH4GZoFIaptVHT/PTQUYarAqwH8jr/NQJpRblNtu8Q41b h5kE3FK0Bcrx3/+Zd6IsTlw5aHjVtw05s4dLWtVo+8g1TVa3DmIZfm5h7PClL9HJLOWp OTSIDh9iY+xzhXKlp3+CuWBnd4nGJLinJzWoIBQ5xoTLALb0n+9o8qX9Ebbj4jGqV2jT q83tfI49OfnTPFbY8Ecv64HoBmGwkwk/Xnvsa93zdxDBXM9nLmfRw4Q+HXL/WxWR8Axb gfANCDAg2XVcS363QcNFYYj/Z8yd6ay5UQWiYipx8c6dkumwh89srhCfyJfBev9nFJBI c/hA== 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=McUFqZfFTy7mHwbw8y2LjePaGU9tqMqaDH3Woad5dgY=; b=JXjvse10SmqZvRwJ31yf2nXk33srcUQsJT7gNkfCOScPMRIxru66X/t/EOv/3pnYPh orMLB4TinZ8jQlOsmC28GExuvJJLQSdiMB5uxebe1u21HWVoPLi7RP42zZwN4SKhsGQy /p8DL05onJS0jfLHjn4fdbm2znzXw/G/eNnr9jU8HA0VXXfZQQie54PahjUz5xGFoUv1 7PZo6gtAZYywx5jvmJ+2xG/CrrJxJwPHw14Z8VSM6L4eDAr4UAkCIzHIw/T9YXao6EmH D29oC0g0olygnd4Ll0KHEjq7geiV/IbhXy82+tS4r1L1HeylMeMZetBv24Jzq9cpnxPU tkJA== X-Gm-Message-State: AOAM530PYGAU3L+r5CXNO0jw+IVg0P/KeKqOwC6fwd5fzO3Vg8r+7nAD FOdHIxgUakE8mlLgsUUN8TY= X-Received: by 2002:aa7:96e5:: with SMTP id i5mr7562519pfq.108.1597652314716; Mon, 17 Aug 2020 01:18:34 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:18:34 -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 05/35] dma: dw: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:46:56 +0530 Message-Id: <20200817081726.20213-6-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/dw/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index 4700f2e87a62..022ddc4d3af5 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c @@ -463,9 +463,9 @@ static void dwc_handle_error(struct dw_dma *dw, struct dw_dma_chan *dwc) dwc_descriptor_complete(dwc, bad_desc, true); } -static void dw_dma_tasklet(unsigned long data) +static void dw_dma_tasklet(struct tasklet_struct *t) { - struct dw_dma *dw = (struct dw_dma *)data; + struct dw_dma *dw = from_tasklet(dw, t, tasklet); struct dw_dma_chan *dwc; u32 status_xfer; u32 status_err; @@ -1138,7 +1138,7 @@ int do_dma_probe(struct dw_dma_chip *chip) goto err_pdata; } - tasklet_init(&dw->tasklet, dw_dma_tasklet, (unsigned long)dw); + tasklet_setup(&dw->tasklet, dw_dma_tasklet); err = request_irq(chip->irq, dw_dma_interrupt, IRQF_SHARED, dw->name, dw); -- 2.17.1