Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2130816pxa; Mon, 17 Aug 2020 01:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzpSt8v3LaH4bjgIO0awCvvc1z0qOKOcFIOWubCTziDFozMDq+xaD6dhbhWI+2vPDG6fCh X-Received: by 2002:a05:6402:206d:: with SMTP id bd13mr14127157edb.57.1597652548525; Mon, 17 Aug 2020 01:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652548; cv=none; d=google.com; s=arc-20160816; b=H2a1UwUekPt/o18o/RTNngSTWbI8VdM4YuhGtOHJb8tde/fh/dtljvUam6e7/eIllO Vifmw/u1YSVv0QHA+rOmFsmUh1QeSz164hU2Ql/LWsdllsiNVqOCSjB7BsemoiZVptV5 f0JW59Sbw8u4Rz1/RAStjzoP9s3l7KjhesQ5cZjuTaTlP+5gmWUobSaZAIoPO0KjvvYz E6uh2lOc7alG3CFwHIcYEbS/vP3eD2iYjpRsfD7HthlfKIvIl6hVC594gTYRGpvKTHny msUV4rSv6CfOpefRbth7m8zv32kIggTT35GLBR6Pi8LHq/LxH2x6etckngzeqxMMib2R abRg== 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=dqznZ0QFtNhvUqAjtholQ/Q+9qOGKPjtIbAySrocxDs=; b=MJaaDe9simE+jQVzl1Ey3bCL3iruMg6SMy4rGyAL2Gq94yXXlZOmDAlIcKWV2mmQwg my30nc4scHwBoEEJTw+UQgGP1fUK7801Wvq2+m9QZmRhTt+d5K+NECvvS+zYvF8DRy38 269txRHQnGXZNBBybYthwkPDblx0VYivkAPHBeqVp2VfEi5xPdu1VqgZQCkIlvQ/DNBk TeXR2TPie5u6F0wspouPxInlItsljBJRVE3zNzPF0EE6SnAJvSQa5GYSQ2kTqjVMZr7U KGZZgAwY3z/FliSglol4XHHaMqXRUu3VCtyO0YtvTZQ//JDC1WsW72QlQfU0gKNdKEqW qhsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KRBYv0V7; 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 d14si10028211edx.156.2020.08.17.01.22.05; Mon, 17 Aug 2020 01:22:28 -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=KRBYv0V7; 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 S1728144AbgHQIUw (ORCPT + 99 others); Mon, 17 Aug 2020 04:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbgHQIUs (ORCPT ); Mon, 17 Aug 2020 04:20:48 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 674E0C061388; Mon, 17 Aug 2020 01:20:48 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id j21so7752756pgi.9; Mon, 17 Aug 2020 01:20:48 -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=dqznZ0QFtNhvUqAjtholQ/Q+9qOGKPjtIbAySrocxDs=; b=KRBYv0V7RGxjCNY2koURdTLqlf5T4Z5jbej72if9UXEFoL/RlV6R2AvNxEL7dsnkWj 0Ocb0N5z5mpfGDeBczn80DTSBEiOrPHHULXZM2bbF2PT18waNq8KIv/teDOjtojWbR/o +utDsvnj0AiO/C0hDKdBK5L3ZEIFNo1ncyj3M37kjc5nrD+4woYiqlvpl7WkU63sNC3s /z4oHsk2a5X6cL0vJjbAo8Q0jygbeBZTUK1omsbE3UDj2SLH/dnrgSMmm41FmZ4H/Jqb uQF+QmUGHr2ATgAq4IklyAkVPA8988eGdhnOuKCkWnKzJ1jh6EvOFScbKkNP2V/Z+eeY +WTQ== 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=dqznZ0QFtNhvUqAjtholQ/Q+9qOGKPjtIbAySrocxDs=; b=pFRM6Vobl4+Fpa64A0bxQVkWROaDZoxKVZklYtH91vH3xNrfMw148NkxDhLkUAyUih eIbkReb2TTzUgsW3lGcQZY71B+LzOw0X/fs8GpcFYqL2cqFznb163vzz84HLxsbLrnHL u4ngSCRE4qubperbVS+aI4S36STFR7Iz1KtixPinwD3byTy7ukZyUKecRTJrKb85pClB 5ffacbn/KEhIANLK1+q1xJN5ct3rU9Q56V931j6PMFAK4LbzlxpyN0hWzLjydqKlOuBc SGoUir523JrAv1dWOvvcLb3Eh9Kl3gHusjP67ZlQwfipj/vuQfqTTrNpIVEbVHNBbb4p yaYQ== X-Gm-Message-State: AOAM532UwnEBcatZBfnMAyE2m2o1Ak6p6ij3fkQHycrzq0TlPZ72bTWh MpACbLBPdxZSw4lZTvhwRrQ= X-Received: by 2002:a62:1543:: with SMTP id 64mr10645592pfv.242.1597652447996; Mon, 17 Aug 2020 01:20:47 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:20:47 -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 18/35] dma: nbpfaxi: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:09 +0530 Message-Id: <20200817081726.20213-19-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/nbpfaxi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index 74df621402e1..4ef0838840f3 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1113,9 +1113,9 @@ static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec, return dchan; } -static void nbpf_chan_tasklet(unsigned long data) +static void nbpf_chan_tasklet(struct tasklet_struct *t) { - struct nbpf_channel *chan = (struct nbpf_channel *)data; + struct nbpf_channel *chan = from_tasklet(chan, t, tasklet); struct nbpf_desc *desc, *tmp; struct dmaengine_desc_callback cb; @@ -1260,7 +1260,7 @@ static int nbpf_chan_probe(struct nbpf_device *nbpf, int n) snprintf(chan->name, sizeof(chan->name), "nbpf %d", n); - tasklet_init(&chan->tasklet, nbpf_chan_tasklet, (unsigned long)chan); + tasklet_setup(&chan->tasklet, nbpf_chan_tasklet); ret = devm_request_irq(dma_dev->dev, chan->irq, nbpf_chan_irq, IRQF_SHARED, chan->name, chan); -- 2.17.1