From patchwork Mon Aug 17 08:17:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 11717037 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07111109B for ; Mon, 17 Aug 2020 08:37:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D35792072D for ; Mon, 17 Aug 2020 08:37:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k0cV8dOv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hkUsh+NV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D35792072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UfIEfQpkY8yuci56PbCoJP7UCtxjWDG2C3F1UxyOmuA=; b=k0cV8dOvQJ3JEjMfL+XBRYrwXJ CJSFDO04XyEYMfgQJ5DXcb/qkc7hzzJFRNfNRx2pp7TUcUV+ogtb2RovHRnWUkoLmG0AwJmRUfTln lPjWgPXwBMf31jquB+cDZYXxWi3O1rvyOCOMcPCkvBLwtCdo6Eni67Wjf5ktv3IqiXzXG/LFlJq99 rr2iERo4f7/1OQi7v8UDTmjOSDjHj7j1PzwkwXCoKwlFG3aoWeBAo0e3G39DcCt1LNngGSzg0Cmzr 4Z6tetk95CKrJufjkhzo3JVOlmgR1CGQo6Hb7m4dFQNenY4cnYjMyReG7Rw1WKAHiDZybGxsXTPx6 PlYW//qw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7ae3-0000CB-PZ; Mon, 17 Aug 2020 08:37:31 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7aOy-0000US-AT; Mon, 17 Aug 2020 08:22:02 +0000 Received: by mail-pl1-x644.google.com with SMTP id f10so7126101plj.8; Mon, 17 Aug 2020 01:21:55 -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=otxsu5o9cde9DrIHOXDNXEgKF0A0Yvtv94mFiTmu/m4=; b=hkUsh+NVWHTVxA9gVlu9/qoblBacsCvQCYPap4IIXPebOmgy1buaRFS5MjMwwL/9LG F2rokfNtHBS5mqJCekyQMEs1BVsuUJwOIfDxfDCIfulCY8CZCoXgXczW9lGtc6jUXP+R D2UG1eEspP7d5pShkpimqH/tBBY3W9aIvMSnW4MjDvi6eLFCsrvqMoV+dhfOaDQkHJhE Vj+3g6Vdc2GEIxYxscvN1e1o5r0pmFiwJ+THCH/i26eXAHF3Ucxrbkiu3cVtTT3ebk6t c1h7/n1jQVhAaNeUh9L9QrMkqmCl9HbtTVCztHLnjSY3ViP1SjVBblY0soJKQzlajbPa qFMg== 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=otxsu5o9cde9DrIHOXDNXEgKF0A0Yvtv94mFiTmu/m4=; b=rXlfp6kVJ6tD0GfAIUsW2XFWb4Z/VEjDDQ/YV70G4CX2B4wHPhcAs4pLkTEBWfyuu9 nbZX8rSrgi5fz905Z+y6XlWt8G76hcB+CzViUsoTqwBIjSbN3GVVEmcWf4En9JaG/ZYO FSyqWtL/+ksbY5a9opbybxqE06cdBYekCBQ5YdU1CqMnLcIJltZDiaoBEfgkFn9eoqbS 6iTBHoZ55Vt3iYuyuFIvivGHG8cUKETJE8Y7lAMQ9YI4nCknUWaPctOQE1V9o+O6PCuR sUgSBokRvL/E/aJ0WHg7f0LJ76CIvnkrctE0akhaibt64Eb3ZX25av2hWFBnpoXWUeia iAUw== X-Gm-Message-State: AOAM531x396jwxpga9bm827xHUUXvrpSzjnpO4c+OAW0Aq7GExfpWvLu kcSd5v11LRU+iZ6ed+9gLtI= X-Google-Smtp-Source: ABdhPJyxOKpoYw00kMjNh6B9fXmf3K4stoPq/ZFbhf1/t2EFSqwkjXm/sGSRck8OeciH8rQQHJSVfQ== X-Received: by 2002:a17:90b:8c5:: with SMTP id ds5mr11636521pjb.110.1597652513772; Mon, 17 Aug 2020 01:21:53 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:21:53 -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 Subject: [PATCH 25/35] dma: ste_dma40: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:16 +0530 Message-Id: <20200817081726.20213-26-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_042156_645036_DDBD67A5 X-CRM114-Status: GOOD ( 12.75 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [49.207.202.98 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:644 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [allen.lkml[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: keescook@chromium.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Allen Pais , linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org, bpf@vger.kernel.org, Romain Perier , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.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/ste_dma40.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 21e2f1d0c210..ec4611ae7230 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -1573,9 +1573,9 @@ static void dma_tc_handle(struct d40_chan *d40c) } -static void dma_tasklet(unsigned long data) +static void dma_tasklet(struct tasklet_struct *t) { - struct d40_chan *d40c = (struct d40_chan *) data; + struct d40_chan *d40c = from_tasklet(d40c, t, tasklet); struct d40_desc *d40d; unsigned long flags; bool callback_active; @@ -2806,8 +2806,7 @@ static void __init d40_chan_init(struct d40_base *base, struct dma_device *dma, INIT_LIST_HEAD(&d40c->client); INIT_LIST_HEAD(&d40c->prepare_queue); - tasklet_init(&d40c->tasklet, dma_tasklet, - (unsigned long) d40c); + tasklet_setup(&d40c->tasklet, dma_tasklet); list_add_tail(&d40c->chan.device_node, &dma->channels);