Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2126895pxa; Mon, 17 Aug 2020 01:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZSEyGVgG3Wu6ST4GLBN51zcYg1M9u+s+SQmA7fAijhttH8Ib1vZUDGhHVjPsPSXNUB2Gk X-Received: by 2002:aa7:cd08:: with SMTP id b8mr14170612edw.228.1597651992719; Mon, 17 Aug 2020 01:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597651992; cv=none; d=google.com; s=arc-20160816; b=BlN7gBtvAj53I+4K9xCAPl03/WIMyQLHqIePH2YBt8FEOQHXgjfWkzjh5/ynSpibUg hbCqxkwCrZ5yRkZQu4KUm4wKZe0g2ikl3K80CcuhTDJ+xtdky/KwLP9Xh0+GTGGvu6xZ prHjwYzVvmQ1ya3UyKzU+zqL08AC+dnLA8rkk+Apx6DwX1cNFyb02FYt1WvvDeA9RpYl EQRFUqEu3FtoDJAO/keExRieUgXsvPhSLuaVmjmiLvQc/T2NM0A0lYizgEERY5c6xox8 6S5im6rzbIS0lCqFHw5fb0MCqMmFqQ73oMwRa0owkYNBOBfbUkvbk/Lp28Mhc2lL9sp+ V/nw== 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=70PFaXHmNSmd92XMUWhul5KjsiDucw6zRMXg1MiBgH8=; b=VvY842xgLc/uJbk0JZAgAucmhRFzkhCPUB0W3jcfHGLhTfEZ9u4BSeyAb9SxOEeRNY CLreflzPfAgdy4UvqzMgeReXIF7hBEkqgWlm/6fziRDyVefb/M0N1LxvgIy1oGZ3+CAl 5KLhyxgFEc/vhrUFlBSX1E+YUqvpIpjJZyQ0HNr6VdugaQ1Ayc+AcemFsn4M4N4GQhKq 8Bk/+5lN7R7mba8K/3uhwxkVSiU5+2D+k9/++2bLWUq8HphAYWbsU7J558WJMfRb/nkg UuNkl1n9n7qlgqvlcFkcXTbd5rQhXgsHM7UeqwoUdbsqZuEuei3r5z8Wyg2/8kePXCcf kNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YsW5qw9N; 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 lv25si10935432ejb.396.2020.08.17.01.12.50; Mon, 17 Aug 2020 01:13:12 -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=YsW5qw9N; 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 S1727915AbgHQILe (ORCPT + 99 others); Mon, 17 Aug 2020 04:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbgHQILM (ORCPT ); Mon, 17 Aug 2020 04:11:12 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E257FC06138A for ; Mon, 17 Aug 2020 01:11:11 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id 2so7429959pjx.5 for ; Mon, 17 Aug 2020 01:11:11 -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=70PFaXHmNSmd92XMUWhul5KjsiDucw6zRMXg1MiBgH8=; b=YsW5qw9NRQ980DmqR7I0AKAyBlH2mw3IDWiuDPiK5PcL9EeuX5xAwemDz4lY2v1H+P PHLtHkMDF/AgpV8+UThxQF2gm9LvzcooZzOrhwy7m7/cXDLWa7fAjMjJIT0aQTY1AsfO xzUZT6gI+uPaKAnyKPfueeZ6eMWqTqWJHtDTQOsluZCITK1RTA2F2ZvZ7wau4Ju0YVLS XBrkbMK4FSESTy616HPAaK1DxUqvvy/pNIMOqvuFftH9+V1h+EhuNNSdDVhY2vaG1Wxj Oikq55hNMBi3727bfh95NcVp5rIWsyWQ+wC8LWRXWIX9cPD/IESHUPUjsUGrC3isgP14 clhA== 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=70PFaXHmNSmd92XMUWhul5KjsiDucw6zRMXg1MiBgH8=; b=A1T0MJYUKnfMPblBqJkSg3TBRIqCsniP1aV/srXrOOIM2V0GduFdQ/zyKpEWyKRrf+ IXCacdiZhJ0CEsfVSGyUOjtzT2saZz1LhV8/AtVn7IeSwKtsPRGk/mjtxAq0o6sZezym Jxrxb9CXF/XDhaU9Rm6AegBWd1xs8FgskH+JZ4dd4vw+VVvKfdCtOsdr8rtGSr0nSWhj XvR/RDNFgMG2A/ddxksLRSdWiu+IP4orC/ykcCBk2dwPcDDosdSgD2ON1zsCKZ2pDKBO MEpMHr88/DHDjBmnSjRnaASqqf67Jt1Wc2cfydSSTYXwjWiCD/XP2Kly0bm5Abf0jmM1 Y1ow== X-Gm-Message-State: AOAM532vczMcX+Jy/uRFDfKX81gRZUEsTClSscaxH1SyoeC2hi8nDzy/ mV357ry0oCehBm+2ilYwKFA= X-Received: by 2002:a17:90a:24e6:: with SMTP id i93mr11415482pje.231.1597651871493; Mon, 17 Aug 2020 01:11:11 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id 77sm18499751pfx.85.2020.08.17.01.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:11:11 -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 15/19] crypto: qce: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:39:37 +0530 Message-Id: <20200817080941.19227-16-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/qce/core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index cb6d61eb7302..0b171ef9e3b7 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -116,9 +116,9 @@ static int qce_handle_queue(struct qce_device *qce, return ret; } -static void qce_tasklet_req_done(unsigned long data) +static void qce_tasklet_req_done(struct tasklet_struct *t) { - struct qce_device *qce = (struct qce_device *)data; + struct qce_device *qce = from_tasklet(qce, t, done_tasklet); struct crypto_async_request *req; unsigned long flags; @@ -221,8 +221,7 @@ static int qce_crypto_probe(struct platform_device *pdev) goto err_clks; spin_lock_init(&qce->lock); - tasklet_init(&qce->done_tasklet, qce_tasklet_req_done, - (unsigned long)qce); + tasklet_setup(&qce->done_tasklet, qce_tasklet_req_done); crypto_init_queue(&qce->queue, QCE_QUEUE_LENGTH); qce->async_req_enqueue = qce_async_request_enqueue; -- 2.17.1