Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp265176pxu; Thu, 7 Jan 2021 04:34:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlmXGVcobBJgSfb2uZsF4SraeUFOJRZZnIhPu7b9IuZ2h+kNwq/lEj44Jx4j313HEgLlb2 X-Received: by 2002:a17:906:15ca:: with SMTP id l10mr5883804ejd.402.1610022864343; Thu, 07 Jan 2021 04:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610022864; cv=none; d=google.com; s=arc-20160816; b=y4kWJRdWc7/ZQidjCm4aIZSaO9K0J6BIWcpi0mjdpHAjf6cAXU0U60nPJ4+IrADdK/ 1A3qiVpkKXAhTILrYryuVIutt+AsT4pTwIdWM/ep8IMAzR5MNxQTJp6r06OoSkTm+wR6 YZYpY9QScxMMEQa/X7SN5fPG1vNOFGnKYkdWtuJ3i0wmHlIF57e5+93iF+VSKQbQ4Idt 9M1aXe9PWy1G9FPjCvWmnRwibkNpS8SHo8jG/XFqkdrTX80IpH7JQnnkbxAefdKxbeZ8 CTL/D3rE9VSyQIN52w3pxDi4CPQpej86v6Affb0b72W7Py+H+KV0g1PoxNXu5pO/9RjS Hi8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u19NxDApfMXx+Y8pGP/iF30yq+dZf2FG4hiZfFrFBcE=; b=gsJ4dIas0KFzHvL95ojLOrdSDhMXdV69K1VKSlvDSaOVJtaWJ8B6R6B/2kC3UhlTOs horVk9VO3mDsKE/bkiQ11pTMmjxD/MWC0CISJSYuoXAFQF1BSccw02HkGgyTuypNQdzO 1LH0ituxPRJNCtu8edo8ZDcNMQkXdTdNZ53KLD/X2dyrMrmp0FQqa2PEeMFuzuknc8NF VJf+lorfs62fh5/+32vmikyy1pDq3C3HTWMOQJ4uZQ1ltc8M2s7nJKrhwQkfm/8rDpzP MJ7ycJB+NiK5eKK+cz60PkGLfap6BGH7HmIIo1sW14EqHkeZ+k+f1O0YA8ew7pPiaVGj dUNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V1vfZ4x5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 bx26si2319667edb.358.2021.01.07.04.34.04; Thu, 07 Jan 2021 04:34:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=V1vfZ4x5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S1728118AbhAGMcD (ORCPT + 99 others); Thu, 7 Jan 2021 07:32:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbhAGMcC (ORCPT ); Thu, 7 Jan 2021 07:32:02 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87BE8C0612F9; Thu, 7 Jan 2021 04:31:22 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id j13so3595458pjz.3; Thu, 07 Jan 2021 04:31:22 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=u19NxDApfMXx+Y8pGP/iF30yq+dZf2FG4hiZfFrFBcE=; b=V1vfZ4x5Wfxkd5zVPqFj8CmcX2UJQPnL4eVh0PHLtBP/O+bnLI8npKqfe0WWNSSjtp jVxjrpT9ITx0wMYv5LWSNWZS3ShZSAfyxkkqN24COtQArayItJ6AlxcqJCy+ovUEPBUm UuCmlzpkQ9XvyBl5Xmaf5dx1rxyduiiXh76svNgHpxKfPWF2l+KPWbirwAsIO6vB+NC9 K7mzRzbHYU4rIdO8dK7KhWZE5raGjBY0ImjknQ0UlJsw1JelcWm+BkAaVDsd9YEK7A/d R9xWE7pg8dyRY6eSOAX9g3uHebqMlbowmSLLwePMyuXP/C8SOj69hIypk8SXS7IW/M1k g/NQ== 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:mime-version:content-transfer-encoding; bh=u19NxDApfMXx+Y8pGP/iF30yq+dZf2FG4hiZfFrFBcE=; b=YRdDd1g7YCMRosnWL7+nUOODwrnY9ol55K/vtVGTevA8oMZqCANWIfP4XuNYhIre63 C7Vkq1ArlGI/1qexXNZAi8VkjhLwtO2Ohxo6aW+jJmX9scHQmyBmx+Xrk6jlIT/Kz9lZ LLSAkuaA8DsI5AP22ULJ117wVmRfLhHntQek1Dr+62bRvj3iOcePfsW8QqqGcOIEOAXp LR0EkzfawcjWfK3zBNiyC10qdNIsunOayKVX7i3Ha+d+8MRj8RvnbDEWp/vDLbCEzwDP 0JTBqs/zkIcTlVXHNlzuzqBzW++XHbKzLTOTiDm3ytBdB9nyQzHBlJPTvVNTBEqHaat7 Nrpg== X-Gm-Message-State: AOAM533PLFlo1oW0QT8bBlx8B/mSqXlY19IAMY2DAYB/d8M8nzSxISbt MZAfkZNALW0KX73Fx6aqG/0= X-Received: by 2002:a17:90a:aa85:: with SMTP id l5mr8154475pjq.230.1610022682199; Thu, 07 Jan 2021 04:31:22 -0800 (PST) Received: from localhost.localdomain ([49.207.216.201]) by smtp.gmail.com with ESMTPSA id h12sm6356014pgk.70.2021.01.07.04.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 04:31:21 -0800 (PST) From: Allen Pais To: herbert@gondor.apana.org.au Cc: davem@davemloft.net, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, jesper.nilsson@axis.com, lars.persson@axis.com, horia.geanta@nxp.com, aymen.sghaier@nxp.com, gcherian@marvell.com, thomas.lendacky@amd.com, john.allen@amd.com, gilad@benyossef.com, bbrezillon@kernel.org, arno@natisbad.org, schalla@marvell.com, matthias.bgg@gmail.com, jamie@jamieiles.com, giovanni.cabiddu@intel.com, heiko@sntech.de, krzk@kernel.org, vz@mleia.com, k.konieczny@samsung.com, linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, qat-linux@intel.com, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH v2 13/19] crypto: picoxcell: convert tasklets to use new tasklet_setup() API Date: Thu, 7 Jan 2021 17:59:38 +0530 Message-Id: <20210107122944.16363-10-allen.lkml@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210107122944.16363-1-allen.lkml@gmail.com> References: <20210107122944.16363-1-allen.lkml@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Allen Pais 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/crypto/picoxcell_crypto.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 84f9c16d984c..e64fa3e22521 100644 --- a/drivers/crypto/picoxcell_crypto.c +++ b/drivers/crypto/picoxcell_crypto.c @@ -1137,9 +1137,9 @@ static int spacc_req_submit(struct spacc_req *req) return spacc_ablk_submit(req); } -static void spacc_spacc_complete(unsigned long data) +static void spacc_spacc_complete(struct tasklet_struct *t) { - struct spacc_engine *engine = (struct spacc_engine *)data; + struct spacc_engine *engine = from_tasklet(engine, t, complete); struct spacc_req *req, *tmp; unsigned long flags; LIST_HEAD(completed); @@ -1649,8 +1649,7 @@ static int spacc_probe(struct platform_device *pdev) return -ENXIO; } - tasklet_init(&engine->complete, spacc_spacc_complete, - (unsigned long)engine); + tasklet_setup(&engine->complete, spacc_spacc_complete); ret = devm_add_action(&pdev->dev, spacc_tasklet_kill, &engine->complete); -- 2.25.1