Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2126962pxa; Mon, 17 Aug 2020 01:13:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznoXK0RPjyGdFC8SDFbYxlirW4nyBACdH2EnlMgBiXiGOOoR2zqJwdkkick1i3bWXmNRCI X-Received: by 2002:a17:906:a053:: with SMTP id bg19mr5597632ejb.444.1597652003891; Mon, 17 Aug 2020 01:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652003; cv=none; d=google.com; s=arc-20160816; b=Ef03j6qqkgBON9g0rhP6ET1Ctfy5nQOrC/YVfCpmOa7bStf3DZ390ZotT0X71e+Hec Y1Lb8LWCnGfSe9oa1u4xKWemB6oPHCfSAB8V3rut9L2zt97wl9ymei6DoMLZFb5IAEwa iuWDrjKcVq5ZJgtexfdxw6UTwDoVd52NjzmZUubZinXNMtn4urXv9s1QxXqGPWMpB/rc 196+wdgZvPv4Ze8Bm2y16nt4mWqcghHwzvDxIS+aKoj+q6V9virieyn9KUfgSgIpF0ls zjKqTrpByr4ioFvFAS2vhCEwxDZnmYe+30IdUUe1Wb1pRx5x4+kumfDQqsyrnkSk0fQX YuWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2jlucAzcv0W9eM59+GUn2Gh+5IEHgp5g50ux6o6FWwQ=; b=sni4FSvT3wkTGuj3/hm4V+VXNqIAGQ4ZUHuDjI+Gz6tRt7CW0uhGRuD8FvvN6pC8jt BSOKBNxFIY3hmEfmJJLMpUDr/kpsxwduE6sMFSzOvPG8+rJfvSpeNcM4+hw68areCRqo wIy4ccn2AXpkU7CeIc60Gff+IT1Lqa2wL6+8Je98WCYmdkYFj0xPLY1ynKDG/aE+kUXK 7WnMMnj3sXfUL95Z5TMRgwmtud4g5aQXYU8FECuIsSde3YovjUS2PH7ebWa1k4isG91Q UhLKR86JHw1vbJpbcdXyyxHgEP9PhVCMm5ern2EtKkv9RJgkP6F37YvbRuwpzcdhMgwo pAuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t2MQSO33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 z61si10899378ede.593.2020.08.17.01.13.01; Mon, 17 Aug 2020 01:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=t2MQSO33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727949AbgHQILm (ORCPT + 99 others); Mon, 17 Aug 2020 04:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgHQIL1 (ORCPT ); Mon, 17 Aug 2020 04:11:27 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10D00C061342 for ; Mon, 17 Aug 2020 01:11:27 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id d4so7322959pjx.5 for ; Mon, 17 Aug 2020 01:11:27 -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=2jlucAzcv0W9eM59+GUn2Gh+5IEHgp5g50ux6o6FWwQ=; b=t2MQSO33f1vjbVEQeuo3aU++uKHVnUyyrTtB3geB2I08q7ydG1kWWexSrXGDcLWNdv 1DlHUBJ+biSN3baHJHgEWZwCeTElOGpgVYrWDI0Kt/zPqL3vkhdg3i/ZiLZdHXIFaczn +F2ygDuPckoakT4oIKq67rcj8g59qwcFwR24DHvn38NgRh0fQjl8TUE4mmLnwGxszJh2 Np0X12q/PXnv5FYcMAJTQujiLVQdM6TsVxViUJGMM2vO8opwWf6WON7JoHHS6DMOZhKN JZvHL/ffslNv006PR5pAvZ6RuLuD1L5kS+I8cwnPyQlpfEWmuAQU/MTin6aK8Hy4YNza nfjg== 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=2jlucAzcv0W9eM59+GUn2Gh+5IEHgp5g50ux6o6FWwQ=; b=cV0EojC94xyti99al8ltEBdj+Kf87sM34uSENtUDq9rEdd367Et4qsd+NOH6atZqAM VS24FU3dlPK7Wi4389Iin19PF1JqegI2wZ4nJvTq4lCSku7rOl3vfboiBAseUglHPhC6 Tk1jXdm9J5QLTIOfKHGbdfCEElULOpRc88AgzxfcP4Y8+1nbvZ7oejmqG9zqGeN7e7Xa 26teQQVHOjTwH6tiGs8ZSIuYQlM5U9/gy+RKcXMjMJin4qHGdA/zDy6z7qfWmLpHepI1 c/gsypwkVKOA7DHABQmLodvceWTi1k7I4YkHaCUna9KarM483CAQv92shaeKd+Z9ekxm Xrzg== X-Gm-Message-State: AOAM531VWla5ATLKA68v6j3I/qahx4ZejfJkXXLZOi461E2LRghz8i3/ DoQqhv/OSy/cSWYQLIF/wNs= X-Received: by 2002:a17:90a:5b:: with SMTP id 27mr10822949pjb.188.1597651886671; Mon, 17 Aug 2020 01:11:26 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id 77sm18499751pfx.85.2020.08.17.01.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:11:26 -0700 (PDT) From: Allen Pais To: nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, heiko@sntech.de, matthias.bgg@gmail.com Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, inux-mediatek@lists.infradead.org, Allen Pais Subject: [PATCH 19/19] crypto: octeontx: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:39:41 +0530 Message-Id: <20200817080941.19227-20-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817080941.19227-1-allen.lkml@gmail.com> References: <20200817080941.19227-1-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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: 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 228fe8e47e0e..515049cca9e3 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.17.1