Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2129599pxa; Mon, 17 Aug 2020 01:19:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTn5ioFTE4z+3z8NnjCK/lJWdxBf+qWRxnqGYYUzEbkWLt/q/XtN//VFNmDVrpaknFh0Bo X-Received: by 2002:a17:906:551:: with SMTP id k17mr13853097eja.322.1597652375480; Mon, 17 Aug 2020 01:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652375; cv=none; d=google.com; s=arc-20160816; b=nBJUCr2o/h+aZrL/DGxBnMNao8kayNcmtVXm04HgImiKc7dTFBYvKv8qTMNhrcbktu T/nblM7IFSnNLuFEAmK9ttrZMm4sIXuvHsNaiSBvFEV3SkVxJORQVBsboqjSq9delTGp EyWw6IUIkFyB8YMeHcafcXMfvRQaDz6WPHi30QaL56YNOf69ZwJ9BlPoOq+NXKKIJeGs K/u1zI8PtolNwrYq5QMWfZhp/mNd/ot+wiBhrOKEuLNRyIsoMOZpdWUudiscp7Pzp39M bpVsuUCWY9W0bvO1TZTSoqN0BPNfxmeJC5GXHIuZ+0/PzsT2bp+f+LZJnmrsoyNCBMZX 6R4g== 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=aYKSRTuJVIPdNCr61TO9wwSP37OM1E0JoVpfKCdbfwU=; b=TqoGbA4sz/6ZEGa5c//wcDUzp8V4w6n+gPhFvlxpqKerR9SLsQ4TA9G20z9BN2MRBs qmTlO4U8DLBHy5LklhHikwi+AzmC/nidK+Ob4BE7GnpGLv7D3K3HRTC2aoqVsNBA0lF2 uD+JMgky6KBG/yQ33Sltp47VpFJvENTlneKrIDsSLpS2hgeNcFm/81Gg1gpFobIjuG99 73kXspS9rxvAqiIKVwhzp/nmF0/qmub5yIJD00x2igOUuZ4BEtet76M95Qhdn7aEUyyq LqOBftx90WKEo3xNhlNlqGJPmob6SVtdTifyJAz8FHpkhMNfqfN7gkjpsRntyKuhN8p2 Hssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I6ylsGUa; 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 qk16si11121859ejb.532.2020.08.17.01.19.12; Mon, 17 Aug 2020 01:19:35 -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=I6ylsGUa; 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 S1727849AbgHQIS2 (ORCPT + 99 others); Mon, 17 Aug 2020 04:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgHQISZ (ORCPT ); Mon, 17 Aug 2020 04:18:25 -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 97E8CC061388; Mon, 17 Aug 2020 01:18:25 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id f10so7122059plj.8; Mon, 17 Aug 2020 01:18:25 -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=aYKSRTuJVIPdNCr61TO9wwSP37OM1E0JoVpfKCdbfwU=; b=I6ylsGUaMfCBojePfsAD++yD9Jyf7sQWTNHKgpA2bcqRyX9BAHEfxGWEM9QDDhOFO+ 1Aj/tmhFnG3KsGf6BolUWSjdZMlfyD2uX2lkAUA42sJHEQ0a9V7YMBisyFpNRtxCnbzp E6oGA/Z4/l5RNBrfBcvJB8Lc5UIEbrVPPtjo0Fw7DFonrQk5k1QAAiUXTN3N6DC07bC9 0N3KKLv43BiFGLdhyP8Xcpkrx/H3MWkerEDcMpP9FrmM/hEu60Tv3negE3rEaX21brK1 YafNNM8/AZprasmodUSRhhhcuX/BJraUe5FQ5kfZ90HsS2Cjda4MKIVjbS6boph9Y6ks /hKA== 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=aYKSRTuJVIPdNCr61TO9wwSP37OM1E0JoVpfKCdbfwU=; b=jstKCu9BYMl3sxQIjOu3WZer+Tj9zPnbu7AlnsDEeeAXEGWF7NZb9mfcbs31cSiMH0 MYtk82VrgntzYniLA7eveIJjQhY7TN5MnCcGSd2dXe8olKgU9dR/i1YSoQare/c1oGaJ JHrxwoDV+/WtAR3TvyLYT6p2Emmes6DnAz4dgeHW17I8djG1zMgKrbnzncQ1uR6Q3OJY ZBEb3xTY/ic/hVVfeqNjaz3wEcZHgZQrt0E7tEr/GV8N/JZDH5BjP8LsSlKvl8O+DJUL pafxkOIaGc0ff4rqlQtlMBcDIe6BRkQriDvGTWQZktdHBdYcsZLEWKLPgON4fgPixuLr rs+w== X-Gm-Message-State: AOAM531Ga0GYRItuzFqOxKZUiHJA3s2gLFKhMKsK5N7Iq5kcF67QrZkW AA01+Za+bWsvEjJkrqOrOrg= X-Received: by 2002:a17:90b:784:: with SMTP id l4mr11034976pjz.96.1597652305207; Mon, 17 Aug 2020 01:18:25 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:18:24 -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 04/35] dma: coh901318: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:46:55 +0530 Message-Id: <20200817081726.20213-5-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/coh901318.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index 1092d4ce723e..95b9b2f5358e 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c @@ -1868,9 +1868,9 @@ static struct coh901318_desc *coh901318_queue_start(struct coh901318_chan *cohc) * This tasklet is called from the interrupt handler to * handle each descriptor (DMA job) that is sent to a channel. */ -static void dma_tasklet(unsigned long data) +static void dma_tasklet(struct tasklet_struct *t) { - struct coh901318_chan *cohc = (struct coh901318_chan *) data; + struct coh901318_chan *cohc = from_tasklet(cohc, t, tasklet); struct coh901318_desc *cohd_fin; unsigned long flags; struct dmaengine_desc_callback cb; @@ -2615,8 +2615,7 @@ static void coh901318_base_init(struct dma_device *dma, const int *pick_chans, INIT_LIST_HEAD(&cohc->active); INIT_LIST_HEAD(&cohc->queue); - tasklet_init(&cohc->tasklet, dma_tasklet, - (unsigned long) cohc); + tasklet_setup(&cohc->tasklet, dma_tasklet); list_add_tail(&cohc->chan.device_node, &dma->channels); -- 2.17.1