Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2131577pxa; Mon, 17 Aug 2020 01:24:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9Pm2IGPVw7aXL9KjkovDntQthtIJDRUcsnpvfTxG9vN2TewLWi9XDZPOQCKWwl/x20O+p X-Received: by 2002:a05:6402:60e:: with SMTP id n14mr13861492edv.29.1597652669195; Mon, 17 Aug 2020 01:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652669; cv=none; d=google.com; s=arc-20160816; b=MbVzmKpE8nEILNQhYIGc4a65v0WjtTiTxx4MfNOVuHvU3pC6JPyAxFnSMEMYERxQYM GYSspSvNKW3fN4qpMC/HSDkY4FudXwK3wRWU9Hh7wWOaeJNGakRvPzC1U0pSkD4hoBKu QLUieKZTg3oYvYtYRijylQlOTHK1imG9WDdIrF1LDm9eQaga5fMrpaGBZI5XdTYVmaSU 4YLK9NfidKvfVF8CsZlolqCSL0+8OqgXjyexeVBKO9OnHJusuKZVuJd20EyyaB3Btiv3 +MBYryRcz6AYMxx4lbYjDyT/JEWrH0f2i6BTv10cL6GPuhU42C2aBXsUIidCZwJWBJNl BdaQ== 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=2u/40339c50ypFs7M618Prb7hCf6hscGSknPACX7w9w=; b=naM6ZMbGYdJNOLQDlJqYrIzN/GfEuvRVcUkkZIMxaeBTf/vWdxfi5njEUN3jU/9scE QUJgw5p71n4EtICtJZE5789fkoUEeKFP2euTt/eGP6qzer8D7ijFFwP/uq/0CuVOtkwU GMCi+IDI2fWDvup6F8jsSlek/EWia95GaE6CSJ5xu5O+CtgfoBcYS9D0wvhiZCYN7b+J qKFq9LFkzjsmjBL4WxdBqdJuMIf2RASlqccI6lHJf2SxHl9lb1qUCQu+nim5xGnmbK4a bJhUo5zry4PpA6f8KCFB3FVItBkPhzJe9pCaFUFzIs/fcUBG3y2KC9VrDmVjhuRS4Loy 378Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iMJgXHft; 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 i4si10100692ejz.318.2020.08.17.01.24.06; Mon, 17 Aug 2020 01:24:29 -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=iMJgXHft; 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 S1728185AbgHQIVN (ORCPT + 99 others); Mon, 17 Aug 2020 04:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbgHQIVH (ORCPT ); Mon, 17 Aug 2020 04:21:07 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D5FBC061388; Mon, 17 Aug 2020 01:21:07 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id v15so7758514pgh.6; Mon, 17 Aug 2020 01:21:07 -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=2u/40339c50ypFs7M618Prb7hCf6hscGSknPACX7w9w=; b=iMJgXHftMkSl4iNyizZ354moFN14rzQi5QK+tsbFIeiCkQVJgOcb4cFOkDwqwHn8p6 RW9U+l9OAhcSuILZYFOEuHFOfiufeK7Muf76t7X5rfoJNJNRY9aI7JyxEmfsE4MKJzI3 oKpRg2L9JOBnMg7DKsTu7pgeUWYEUQsofw1NXS6KesdoB2kjZfjXKQdqb9de6VUvzjj4 fSUgAq/rbcI1IEyjk9wHzfEFF8akM/JLknmS5KMWJOYvYsn5zf/xIPvEZgLADDg6rXAo 6QgNrVRH6d+Qs05Jy11I6QzJS2SlA5B/7I4XrIw3CArYIMUWUYvQ4ZPSbabLMjncdi+6 6EVg== 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=2u/40339c50ypFs7M618Prb7hCf6hscGSknPACX7w9w=; b=VfBhAf7OxOOpKOBLruNBZyE21mahhO1jlyiUE5bFRswJeRcn1WjdwPjp5suFGFHNKT XzGC/8pGPGZPL5RsHE4uihzf8ss9ig8b6AcHM3WC5woAnjGsVeGiyVxqEhFdLQUvLOUJ RjsAtBqPU0zEu/AvGN8Tgmm0b0w5arJlOftWTzXhhsIl/qHMiRI8Y3vt3qnwivp5pSuT uUlfhABYKSACdfQJG8kCFgZ5+OMHTbw330hvjtn4/mnrnCLQrXgsrnIn/vMPMQSnfr2o kyaE+4bOxBPYy2bMMJdR77cgsMGk2HXIkaXXH4/krDm5T+mH+uqZ1Ft6fWxRjsIqavG7 neMg== X-Gm-Message-State: AOAM533OeIKkzPCcrrF7p/FKK0nEl13dL+QKL3M624do9hYBrPWuYSHR 268wxlvPqHPwrSRBp4aKWl8= X-Received: by 2002:a05:6a00:91:: with SMTP id c17mr10267047pfj.151.1597652466999; Mon, 17 Aug 2020 01:21:06 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:21:06 -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 20/35] dma: pl330: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:11 +0530 Message-Id: <20200817081726.20213-21-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/pl330.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 2c508ee672b9..5599d350ec79 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1580,9 +1580,9 @@ static void dma_pl330_rqcb(struct dma_pl330_desc *desc, enum pl330_op_err err) tasklet_schedule(&pch->task); } -static void pl330_dotask(unsigned long data) +static void pl330_dotask(struct tasklet_struct *t) { - struct pl330_dmac *pl330 = (struct pl330_dmac *) data; + struct pl330_dmac *pl330 = from_tasklet(pl330, t, tasks); unsigned long flags; int i; @@ -1986,7 +1986,7 @@ static int pl330_add(struct pl330_dmac *pl330) return ret; } - tasklet_init(&pl330->tasks, pl330_dotask, (unsigned long) pl330); + tasklet_setup(&pl330->tasks, pl330_dotask); pl330->state = INIT; @@ -2069,9 +2069,9 @@ static inline void fill_queue(struct dma_pl330_chan *pch) } } -static void pl330_tasklet(unsigned long data) +static void pl330_tasklet(struct tasklet_struct *t) { - struct dma_pl330_chan *pch = (struct dma_pl330_chan *)data; + struct dma_pl330_chan *pch = from_tasklet(pch, t, task); struct dma_pl330_desc *desc, *_dt; unsigned long flags; bool power_down = false; @@ -2179,7 +2179,7 @@ static int pl330_alloc_chan_resources(struct dma_chan *chan) return -ENOMEM; } - tasklet_init(&pch->task, pl330_tasklet, (unsigned long) pch); + tasklet_setup(&pch->task, pl330_tasklet); spin_unlock_irqrestore(&pl330->lock, flags); -- 2.17.1