Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2126191pxa; Mon, 17 Aug 2020 01:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdqApHWyzcntVLr31xS/I1/1FGxkUItmB3d/RrE0LSJuBC6aJE9RuePWg39rJCD/IpSrH0 X-Received: by 2002:aa7:c246:: with SMTP id y6mr14273895edo.78.1597651892524; Mon, 17 Aug 2020 01:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597651892; cv=none; d=google.com; s=arc-20160816; b=YNbELASejiaBsWpbvTk6WTBKZTBY9xwNgpy1Uvn2AsnKKLmhxqLKltIMzFZiD7ZKzm 8+nT7/yef4KpYsnYUJnXm/FJ1iP68ygcoh/RyF1IStekwh+p4/9Pl+i1NfSdvBUMWwkq OlXVcdo4ilBzFJ7bzyBTDbuETt4lU7Vsv5RON4s275zC99mOKoSBImkZlPw/10SpRKKb lGEnEup2m+gB2lvK4B7cubT0Tujr6ClxnwPbTn3Y4uqN8wDqN+ijBKnDAKuTd28xbjfD C8SJsQUeu+19ATd0zbpTT/AYvYu9AUm5udU9oExk5sotVrxnU3Gy80ZpTJgp55ud/2sq MnOw== 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=EjM/bc9oMW+0sBykqCFUkPw3qkHdhalyi/ZZCcuM7jI=; b=swiyjmaiIyfhhQLopqarVWkNberpRa4IjbFUvaYvyosTHfqOiJ7+3nQUSGeVdVMkMv nAvPTH8Wvhhk9lAM4j3XSwRt0+qkrpbJ4JhD4JQy9xh/EKWXdO4sLQ1UTWsWbCqvQ+Kj WETHcV6BjwFXAEBUbgGnAG8wms2tcujvp/lADPOx1htKVJovCFfDvy8NaZXmfJEtvf1U kCW4jICfLIzbIqHyM6RfE+gvkg2keTcVeEPfwBKCfh+9YAL86a4eU12PS0HEPx2mLqp8 pce3NolODZwjyUdPpky+8859LZvPqs/lbvvNiy5z2BDaK9/9winWnQ17bWiQFvMMkzto siLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TZ17WiWG; 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 a21si10406436edv.504.2020.08.17.01.11.08; Mon, 17 Aug 2020 01:11:32 -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=TZ17WiWG; 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 S1726829AbgHQIKU (ORCPT + 99 others); Mon, 17 Aug 2020 04:10:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgHQIKO (ORCPT ); Mon, 17 Aug 2020 04:10:14 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B708EC061388 for ; Mon, 17 Aug 2020 01:10:14 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 74so7831941pfx.13 for ; Mon, 17 Aug 2020 01:10:14 -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=EjM/bc9oMW+0sBykqCFUkPw3qkHdhalyi/ZZCcuM7jI=; b=TZ17WiWGgSUx7KDRMcYgdPiVlPvhIeKyT7JacWITYd5bfAzGX0K/drdRZgf/IgMZnQ haeKHiKqj+EWZOMjz9vK4jyjQiqD2EsYL5wZtUY/7MKM8EcwZCyMRJ9m0MJHmJysxrGT rEe7Yhg9fiXCpeiIOwHg87Nc2oW9XxSEsocphkY+WifyY5+Lr48OB0OlGW1u2ACfuUp2 1lrjWZf+TyJF5sRol6kMfbmX6DqRnNgYIZ7szwvBsl3Dc96FJPHdC/QrIh8YsFfghKkv Lds0hCRbLyYqsmh1KhEpxq6A5urNKeBOU3y2s7X0wX6op6r5rAs4OcFXJX8gg7m83fNC srrA== 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=EjM/bc9oMW+0sBykqCFUkPw3qkHdhalyi/ZZCcuM7jI=; b=lqHsobhd961gl4JcUULvyMLtF2P0zceq3TIDOQwMkVQvJMCh59CH4V5Z2EpyPja38D AwdxQaKA51hzDNjUucQdM61NcMmn2KrTtn4bOmBW5wPNHYitnpgYkRfBBW4vh8qHLqb+ rPcf1Bxln/UO/RIlSM1mk4wMpdMTSMNx/hQ9FBBUuzTD2Y1lriUVOjPPwdEEE1Cb8yAX 2JUg5dSnnQEO3nCWgDJQKw+Sxa4XU3DEWmIerVkxjO8eqeNYYcXA3rspTI/2y5BAfQhY eNvxCcOnY5r67YbKYpeFP/tre1jWHe+qXGXwya3vt4on7rt2uPW+CDNMVpi0wcU2Hk2O q+/w== X-Gm-Message-State: AOAM533oDwqo+dO52nigfqllH5+1pVs0/EvIeJVZOaAIH3u4WKAn6aWN dbsRO9nTSWrtkx3LrcvoEY4= X-Received: by 2002:a63:31c6:: with SMTP id x189mr6189388pgx.182.1597651812808; Mon, 17 Aug 2020 01:10:12 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id 77sm18499751pfx.85.2020.08.17.01.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:10:12 -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 , Romain Perier Subject: [PATCH 03/19] crypto: axis: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:39:25 +0530 Message-Id: <20200817080941.19227-4-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: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/axis/artpec6_crypto.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/axis/artpec6_crypto.c b/drivers/crypto/axis/artpec6_crypto.c index 1a46eeddf082..83e4c164dedb 100644 --- a/drivers/crypto/axis/artpec6_crypto.c +++ b/drivers/crypto/axis/artpec6_crypto.c @@ -2074,9 +2074,9 @@ static void artpec6_crypto_timeout(struct timer_list *t) tasklet_schedule(&ac->task); } -static void artpec6_crypto_task(unsigned long data) +static void artpec6_crypto_task(struct tasklet_struct *t) { - struct artpec6_crypto *ac = (struct artpec6_crypto *)data; + struct artpec6_crypto *ac = from_tasklet(ac, t, task); struct artpec6_crypto_req_common *req; struct artpec6_crypto_req_common *n; struct list_head complete_done; @@ -2899,8 +2899,7 @@ static int artpec6_crypto_probe(struct platform_device *pdev) artpec6_crypto_init_debugfs(); #endif - tasklet_init(&ac->task, artpec6_crypto_task, - (unsigned long)ac); + tasklet_setup(&ac->task, artpec6_crypto_task); ac->pad_buffer = devm_kzalloc(&pdev->dev, 2 * ARTPEC_CACHE_LINE_MAX, GFP_KERNEL); -- 2.17.1