Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2130540pxa; Mon, 17 Aug 2020 01:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAyzmyfbcN0oXy233/kZK7hvS+UImPJYt98oLrHstVxkUOj/+2L+m2d7DcR1Iq4RQNISlu X-Received: by 2002:a17:906:68e:: with SMTP id u14mr14707147ejb.166.1597652509798; Mon, 17 Aug 2020 01:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652509; cv=none; d=google.com; s=arc-20160816; b=sqFQPpEr8wEZU/Cmo3/ohZcE31CKKmJGeOb0cjN69eaAjVySnygWefCWv2bawRcbr7 moZ8onmLvaNoTSJJXkaiTKI2ekXvIs9Pk8OeFYntVApbSHKfwIeabc4DHx/h/o/QVRjs UrcKc2elkGrAzSWfclQQ4uddRUy7w6UY30y/c4Sb+gBTAYKzhsojxrQ9fuPF8jBtuLY2 FzsX6WZQFvW2DhtF52pXae9bNyN/HIVKQ59BXnKQVnctUNU8PDhunoG6+ETDAI39zWiD MN2nd5cEYJzVNuu2OISjovWmqpIKRuuIFjeJIIBATx6Mr9EZb7kSj//CWvE9/4W7vYJL 0XIg== 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=Ciey4QNzrHRDVKJ8tzpjEmlmjYecYc8dBp9iK+FHt5M=; b=SBYgIV4xt6AjDQfH7KW7rp6NiXKy1D7+ShVZ4z2COVEzTilgcgsiCxZvn63f/1509h 4m1vzbj/13Fx+KqSahaFEUQVseJ/aqyoTukAeBzljoGxbt2mzOp5YUPR6KPbxv9YWRtS YW6wKIpOGl32qvdENb3w/MKi3WVVn4pzNgVpm68HB5u7f5tLwMitAd4jObOIv6GiIDSP tP5GmK/aOuLDPhLxVc3+fl0h8l4AMEOz58oPnK57ueg1rYP9euMlZDPoUw2F0MxN3wxY +l19BxZbpJjJPu1mRPeOzouOX4lEeCGZoW/vgH6dlwHLXYQ7iR0ziJf94gkrj/QVAis8 wKrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GLX/Udd5"; 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 j23si10232598edp.162.2020.08.17.01.21.27; Mon, 17 Aug 2020 01:21:49 -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="GLX/Udd5"; 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 S1728109AbgHQIU0 (ORCPT + 99 others); Mon, 17 Aug 2020 04:20:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727776AbgHQIUU (ORCPT ); Mon, 17 Aug 2020 04:20:20 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDF6EC061388; Mon, 17 Aug 2020 01:20:20 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y6so7139646plt.3; Mon, 17 Aug 2020 01:20:20 -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=Ciey4QNzrHRDVKJ8tzpjEmlmjYecYc8dBp9iK+FHt5M=; b=GLX/Udd5tRebzj17DAsk32nKkuKq6qYgYAA8Ky5wQ5P4cQogSbBbaFIMyGh8Y86VZt wYUU5DgcowgC3uxy73fZRdoZ5KZmLb9uHoM94LbDz7oyNcaenDC5HJl0iStCi8eGMy3E wjthrsKSMZrbEyoXtZyUHaUFFixSuIJ+FpgUUDl31tUNcVYv/LsO4SbO/RWiDQPREHNb zp9rJGwc2w2GrxZ3qcn8QZyrIgYK+TIXdW+2qfHAjnqswD00sMvZQLa5jLG5Wt5sQz27 7v1L8ZouQY+TtruCA3udb7q5lmoqhJjGatDH1tPOIr9cVOnfXykv8lNvKhiyMhUHl0E2 8Gag== 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=Ciey4QNzrHRDVKJ8tzpjEmlmjYecYc8dBp9iK+FHt5M=; b=RCBl7/6bZ+MFmNE0zZ8mI5D8AkNug7b255/RBgd546zyYYjWBzrdLKdqhFt4XzG7Sw tnlqTjo1SCZHg77STlSg63tZHn3+WiQIqiCGK01etMWhvJWgfkUPzGmcTbco8OtZ0NbE oxLJOF+K4dfuRuCkDVcfGKcaaGaWcGJTN9x+A2t38M8kfE+oWRQwYyB2JFu3G6EMPRXi kaJ7TxJHCOY6V4DEG56q5FqqgrBOb3Cp14/RVEnxKjh5+OOA9Zc0UCBb1pO6kf8wKx4D 2/3mTS3mBjIFeUueUwBsNf2lXMh9l5NVxF5QdJYa4d014MiVhx0akDGZ08ztrq0TiMur 6l2Q== X-Gm-Message-State: AOAM533Tkk2sFZ9+HKJN/HCn/otKcxW1dbUX2YOg1vGNBMCGbmbw7OVK GhrkxVNCqTBX9j8Y0sTcUO0= X-Received: by 2002:a17:90b:2092:: with SMTP id hb18mr12054250pjb.118.1597652420174; Mon, 17 Aug 2020 01:20:20 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:20:19 -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 15/35] dma: mpc512x: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:06 +0530 Message-Id: <20200817081726.20213-16-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/mpc512x_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index dc2cae7bcf69..c1a69149c8bf 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c @@ -414,9 +414,9 @@ static void mpc_dma_process_completed(struct mpc_dma *mdma) } /* DMA Tasklet */ -static void mpc_dma_tasklet(unsigned long data) +static void mpc_dma_tasklet(struct tasklet_struct *t) { - struct mpc_dma *mdma = (void *)data; + struct mpc_dma *mdma = from_tasklet(mdma, t, tasklet); unsigned long flags; uint es; @@ -1009,7 +1009,7 @@ static int mpc_dma_probe(struct platform_device *op) list_add_tail(&mchan->chan.device_node, &dma->channels); } - tasklet_init(&mdma->tasklet, mpc_dma_tasklet, (unsigned long)mdma); + tasklet_setup(&mdma->tasklet, mpc_dma_tasklet); /* * Configure DMA Engine: -- 2.17.1