Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2962437pxb; Tue, 12 Jan 2021 03:01:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMMPympqQxng7asuOjPrScW714TxadukZ5qnDJPyV5TvkcmNfliZUFNDLyVDgwIAxr3Xgn X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr2664969ejc.197.1610449265115; Tue, 12 Jan 2021 03:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610449265; cv=none; d=google.com; s=arc-20160816; b=Krh+3ADGsQGCxeTOSzKdPx5jaFjEZtql7VBbvr5AOZPld2OkwHb6hjQ6Kr0GiuiHer XoAkD++6dbSYRGiMT2PCXVvdeuoLFUqzrNzOaBEaRCriNDN9D06WebOEuf1anUPAGlo9 7gAM2MqypMQh0sfvGyqPpB5b79VA/yRxULucJtE00l8Oc/orXVbotwrJ66BasKpUEqNN 5vfNxKHZnx/vlYI49NFeGCLL+ebmp0pZNG/nEQzgjJPtsyQwzAouSMecpuUF69eQvVLw idVcXkXC8m+m5306RU5XVzlnbR38aB3S1arIl2Q8Ox2tmu8hXAZCpbBc28IrENL40z+C oZRg== 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=ZnixUkRVZXwUiA7QaBCjaWsz5C5rcjprwZt7SjBP6ryKaxfmXp04eDLoiUAETPpTZb EDlKT2JRpj3qaBSvrnf+S2KXf2pIehtDFmdChuKpahCaXFrIhZUxgLip02Q8kvoNiCyp ui8uZgf7ppjm8gWauPT//G8aBY4qE/rYZqCfTINSC+oqjvLbo91D+Rjimc6XRWvHAHJU WuSUd1t2qoDRO3AJEfIFJ69yaENBJcI1bcQ+twqbO5iNPwHIGTGrgATbYur6kYeW7NuD MsiMJ4TOojOfpMcxZ5b908viiJFd01lSNDk8WHEZwqaUppMIm+YMjkBh+yOKG3iW1rXc 6ucA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PIC7Xupo; 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 o18si889155eje.528.2021.01.12.03.00.46; Tue, 12 Jan 2021 03:01:05 -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=PIC7Xupo; 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 S1728820AbhALBus (ORCPT + 99 others); Mon, 11 Jan 2021 20:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbhALBus (ORCPT ); Mon, 11 Jan 2021 20:50:48 -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 C40B4C0617A2; Mon, 11 Jan 2021 17:50:07 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id 4so525584plk.5; Mon, 11 Jan 2021 17:50:07 -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=PIC7XupoDMn9piWQ69Bl0kSfEVHNzrMRig+EIc5OLLCmFuFRswvromgbiophGM4QYT ZD80Bj/rA5IwXoG1Cl7PFkQrgG8ZvvcmRUFgRGaEAdl1BXrb2dqQgY0ctp70w1+jPmRW T3saZ3Dv0NpvtYnvNIiL1rBjBb5Hsf9Ql6XGjKUxArWP/Jfx/JeApHqYds2TBZ1yA9Y/ rgZLAHIxgZDLeBV4ciOlD54q8dsDHuwxMT3U13i8N1WMOsTxZhI8Vjg4RzlUtZDe/tHp gb17/KPo4c3WJgDloV+1R6wCybnuniZnBEL8Usvu6/JR0PphWZ4dsgLcv7Gw7YJrLo4w 0CqA== 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=r/Fs2lkA8A2iltRfTpKC6vvCn1mGXHtRtIeZGtppqeJ4kDDl81ZYVRP/nEsuzgv52b vOJvhe8rszCSlFJxrALaBiYVN4HmOEuuEDVLhpfIwL16DfOIKPMHB39SCOrBrOgc+7Uq tVU/elassNN5vtWeLbgBARA5C7wO5UVXnX2AV1PNjx1tDpDfm5rm4qC/VrBGA0pNmQd9 aDDwbikQaXeSHHRPpzXhb6K3Ko9/WEAkfGsVUl32AWX5b2f+/rWgAnnZMikXzewfxMB3 Zvz/8tYJghXFqSnCBRqM7SJwd8VaaspG1XO0XFthwDFtWFTIemyi7BRxvBWOxIY2YAfE dyDg== X-Gm-Message-State: AOAM533jTSdonmE7rh6f/qz+LsJoFzt9I3RvQfnD5Gi28Bg1V1Fp0Vo4 ufI7oGYSGpdoCCnfCmD/EWU= X-Received: by 2002:a17:90a:49c5:: with SMTP id l5mr1833591pjm.116.1610416207445; Mon, 11 Jan 2021 17:50:07 -0800 (PST) Received: from localhost.localdomain ([49.207.194.207]) by smtp.gmail.com with ESMTPSA id 14sm904376pfy.55.2021.01.11.17.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 17:50:06 -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 v3 19/19] crypto: octeontx: convert tasklets to use new tasklet_setup() API Date: Tue, 12 Jan 2021 07:16:50 +0530 Message-Id: <20210112014650.10887-20-allen.lkml@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210112014650.10887-1-allen.lkml@gmail.com> References: <20210112014650.10887-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