Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp265023pxu; Thu, 7 Jan 2021 04:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7QuM0lRIlPEkODbWAJsK9iq1uceicr3xGv0X5qM/fDZcdPbOOpjjuWXeEJHtgN0kk+86Y X-Received: by 2002:a50:d5d5:: with SMTP id g21mr1616706edj.41.1610022850520; Thu, 07 Jan 2021 04:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610022850; cv=none; d=google.com; s=arc-20160816; b=jVNtmgZW66unMzFAxwnQgIdOrAYgH4A0yjSapx2VK0GJq61F7Zh+ko0zyWkqZWP+Np fUCmII+jJ4OwHL1y1PrRXIE9UTb9ULwiE76TpEPga0Xppx5K6KTQKAQPHuv7ktQm22bD RMVjuc6xcB0tJ3Vi4atNzFBKdTwiL6jTtajP74BSU0teZlmcQQjg/b963f8mD4ewW18V u98AA4K9gLF9H8xdPAYUmpYP1snj3M2TXxRt6fUPm/Yda79t3sWIH2h2mCjMbr4FZZVu 7fVmVUsuPRatsjpqTL2Vfb5QhMidi7rxgcB5frYVN995K3VN8AuEmvJDjDbLx2g9qFcl +ayg== 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=nmGD8HgPe/79+tkqFpZtuKTtNUxMt+0Wii+rdB2TPJ0=; b=T0yki/mnRYF2GSe67k5QTDf8Xd2T2VAcPGSOJ8LwmozRXL5QdHAnvDmH+eB38ahYV9 LtM5mJg6xAMNp8jKOvTE+QJhBVZv+qjq4qeA2Ax408a4/cGntVQbSEQV70FvXtvyW5qF 9jzalfQ+gCLuK8xEaP604VMwLSccJqGgOnXa1zI+sqcYI6naHwyAg4nxtMKyGsgzwZkh BO7sQj7BCgpbwUyTlzMfQbZNFLs+hU0hnA6xEC1EluYe9UG28iKSHFmq+LX9fr/uN8xe nMfkJCfAhAgHE/zLsR2/59uzgZtlDOZbqPIs5wbaoQAhN+K+Cr6yfB+VTEPKknqADT4Q 1lbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S4LNIh9R; 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 dv23si2123180ejb.408.2021.01.07.04.33.51; Thu, 07 Jan 2021 04:34:10 -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=S4LNIh9R; 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 S1728092AbhAGMc6 (ORCPT + 99 others); Thu, 7 Jan 2021 07:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbhAGMc6 (ORCPT ); Thu, 7 Jan 2021 07:32:58 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41B5C0612F4; Thu, 7 Jan 2021 04:32:17 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id y8so3403367plp.8; Thu, 07 Jan 2021 04:32:17 -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=nmGD8HgPe/79+tkqFpZtuKTtNUxMt+0Wii+rdB2TPJ0=; b=S4LNIh9R6yyfuQUC+97w6+ddLUmLZts28spXG4s3H2FtN63hu9uKU4xyqyNAaURVtl MrEoseabVLnbPwm4szc+NBo3o6mQ6oNDvq79kNnzMzf+eSGD3U53lSioAf2cU0sTVx6d f3DTuXE5WYhBTPbycCxa6p3Em5hFNd/hzmb8ZOvDpGBmqzWZNyCnHDqqjt72U4HtEQ2h 9lkZqR+IabZBTkSqHXDQqAaLkI0A/EPMfO0SUQutv1gLXBlPX5KENzoKX5gxKHYGxuvY Rs0TWa9WbyQmSdqmJsJ5qlA9aTFN+w2bppat+Roha+o29T2fcaL0dmRWmf/sBmG9IbnS TGmQ== 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=nmGD8HgPe/79+tkqFpZtuKTtNUxMt+0Wii+rdB2TPJ0=; b=EReAc5J3ISNB8QTOgjRnDuMer83PeSFTlSPXhkInpE0c7ou2VGV2TvxYeOVBmf9uXc 0dhhvWnWFPxKXKUWW/LMW29msdhKr6xuzGEozw5jSMsmtp3vGRryAqUV56t+At54RRud YJAlzuOou2n6WlAqmxNetD8t4Z3bY8BaQMO/KQey6ElPSGv6E6y7seL1fKlGeg/1K2uZ 3KtHP9TY3Gx7VHqSnYLLPzJGppeBf7c7zfGPtmpH3SOjl0O9BJE82hDR0v0881lxON3/ WnO2i7yKyZjwjal35zEyG/ReYuK6gcpU2p7GIWfEAbuXOlnclNftOLfnJzTLlh/v/33R eXZA== X-Gm-Message-State: AOAM533t0BTEIdPMXNWFCt1hj6jglXJQV4/RnhIAumhjma+uqDqlwJRR 6bCZp5W/npyFjj1V0A0PxHc= X-Received: by 2002:a17:90b:815:: with SMTP id bk21mr8954482pjb.21.1610022737613; Thu, 07 Jan 2021 04:32:17 -0800 (PST) Received: from localhost.localdomain ([49.207.216.201]) by smtp.gmail.com with ESMTPSA id h12sm6356014pgk.70.2021.01.07.04.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 04:32:16 -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 Subject: [PATCH v2 19/19] crypto: octeontx: convert tasklets to use new tasklet_setup() API Date: Thu, 7 Jan 2021 17:59:44 +0530 Message-Id: <20210107122944.16363-16-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: Allen Pais --- drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c index c076d0b3ad5f..831550123719 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c +++ b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c @@ -17,11 +17,12 @@ #define DRV_NAME "octeontx-cptvf" #define DRV_VERSION "1.0" -static void vq_work_handler(unsigned long data) +static void vq_work_handler(struct tasklet_struct *t) { - struct otx_cptvf_wqe_info *cwqe_info = - (struct otx_cptvf_wqe_info *) data; - + struct otx_cptvf_wqe *cwqe = from_tasklet(cwqe, t, twork); + struct otx_cptvf_wqe_info *cwqe_info = container_of(cwqe, + typeof(*cwqe_info), + vq_wqe[0]); otx_cpt_post_process(&cwqe_info->vq_wqe[0]); } @@ -41,8 +42,7 @@ static int init_worker_threads(struct otx_cptvf *cptvf) } for (i = 0; i < cptvf->num_queues; i++) { - tasklet_init(&cwqe_info->vq_wqe[i].twork, vq_work_handler, - (u64)cwqe_info); + tasklet_setup(&cwqe_info->vq_wqe[i].twork, vq_work_handler); cwqe_info->vq_wqe[i].cptvf = cptvf; } cptvf->wqe_info = cwqe_info; -- 2.25.1