Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3860742pxb; Mon, 8 Feb 2021 01:51:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJymjcXiMzrdU8WfVnBO2OsQiDPFt9h7LKWSVzd0s7hlgOoJtnuQ4ZN5HZXx08FQX8MrzgCR X-Received: by 2002:aa7:c5d6:: with SMTP id h22mr16888892eds.272.1612777870245; Mon, 08 Feb 2021 01:51:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612777870; cv=none; d=google.com; s=arc-20160816; b=VvFsuUXpCYXEuIILfmKkclaQk6N0IQ5boRGrnyYApzDlfAzIdz8iSSyx18x1sBUEcx Hp7MXua7cVfKxYzEphFcH/aOadSbXwbCbjUvQEDSen8vFx+vhXe70xB9cv7/6qf6BIJa lyx0CeyRR7T7uy+oG5liU8wNTXT3JoMw21UqDNBlQI27Am+fGKLk1wno832hCyRWMD/i Qi20SrnjjqI4xyurOxxDeGIaQIS8sUmL4Dkl/BB7HUHKQP1kFwD3cDpFmwUHRqtMqgbG 9eYn+pvaAmH2aY39BiLcwhEE/JUXKvxjcZqwyABMkiNlcFICZaQXclFBNB68fIKxa+Pz b/yg== 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=RwRSEouUpRU/11R+Udi1nRzsue7t54ut6HTc7UTvYzSLCYjTmCzyOvr06KMIThYAqH N0Sb0A1p0nBOJ41bQ67QX4/pudb2pXIVo57jeGPcJlHpBn3dTUvg34YC7/BfiCpmzgVk KvVuVQo/MA86SWhd0mQfNvxNrW078p/b0aVFmdy3XvTYKyZZydrMHsvm88kT1TEp0WS7 xuKqExz70aSBVMWrOOvBm7WkzTRtOpfzN7SVM79wJfqMIVTeemy8qfpKrJhbdkM0wmke L80a0Cq6e4ZSCGxVAaAniy+SV993Eh+jC1HXXQ/BzpBwUw8WoZYaRAE6wVYKLYVHQiYV Zogg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uCYoZg2R; 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 m1si10771657eja.95.2021.02.08.01.50.47; Mon, 08 Feb 2021 01:51: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=uCYoZg2R; 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 S231976AbhBHJu1 (ORCPT + 99 others); Mon, 8 Feb 2021 04:50:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232005AbhBHJsI (ORCPT ); Mon, 8 Feb 2021 04:48:08 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E330C0611BC; Mon, 8 Feb 2021 01:46:02 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id d2so8465656pjs.4; Mon, 08 Feb 2021 01:46:02 -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=uCYoZg2R8/14y0vFMLpPaQrQnJMbTKrlnsoIPOS5QGxuth7pVrBwrA6j9gye/csbVB j+5RtB1vgQ/mWJWxDFGUR3KtlxSichulOWha+IW3/EorGaqTwmHXEicitQnSp8F7qo2T H4eCH5JgjaxXZAVWGSmV3s1TNTnZX0F6jCFyziRIAFb4TX8fKB5rld8F/WFR79ktoXDA tOxJTl4TOaA1rZRtpJV2v8r/6EHbrW7ivVSuAOmysEsiDzLM22xgt3fiIobRfWrcjANg apZiOo9RQ4NrxVP6+BYZYoL1Y4yC5j1VVpEPnVW0V3PZhttbddwkfshnBuy8i6z3muY5 dHUw== 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=qEl1/eFhqcmjRxpzT6h87+Wg+lqF5ZtoOv93Eqh1bij0+YOyEMndKi0lUWuKCAG8Rs iW39jLM/KHh225I6udcudXdJcaYlHsKknjMGENPLa+zhKgUtZfOCYv4VsVPdPySfoCPy HHy5vLD7A7RwTGtRg164oV0H5T4KzBc8xTg3CrHdTCm/dea3z/h2f7F/NRPoiDWWdSZX 7YBrcNkDo09AYLOc+nunRJbgpLrzFgP4menpREcOaEcpi44FpVQplrv/Q2yhWWL1QyOF iYnIQuwR767awTalzRyb5m2L89P4XK0VbCEga73Mpjk6glU2s6OpGiJTzA+VjoYpzFRN sVcg== X-Gm-Message-State: AOAM533AD5fLHY8bkeDTSoFbEbkIMpDZ5avhsGt/PE/tKE2g0+p9XHtZ V5PVkzb1JqAv4/MXCt0+edw= X-Received: by 2002:a17:902:c242:b029:e1:8332:f14e with SMTP id 2-20020a170902c242b02900e18332f14emr15645661plg.41.1612777561736; Mon, 08 Feb 2021 01:46:01 -0800 (PST) Received: from localhost.localdomain ([49.207.205.214]) by smtp.gmail.com with ESMTPSA id k69sm12208958pfd.4.2021.02.08.01.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 01:46:01 -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 v5 19/19] crypto: octeontx: convert tasklets to use new tasklet_setup() API Date: Mon, 8 Feb 2021 15:12:38 +0530 Message-Id: <20210208094238.571015-20-allen.lkml@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208094238.571015-1-allen.lkml@gmail.com> References: <20210208094238.571015-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