Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1538603pxb; Thu, 28 Jan 2021 21:09:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFRjLRsFplqQXgnz6CMeg548fwritbe1HHU4eLqzk/YH5fb3Oq0yrzu0LzMJGFFXLnH+7Z X-Received: by 2002:a05:6402:35c2:: with SMTP id z2mr3254688edc.34.1611896953418; Thu, 28 Jan 2021 21:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611896953; cv=none; d=google.com; s=arc-20160816; b=GUA83LSP97cSOmNVk7z7ToSJU6yaljrwWcKMGfoOhcLWLgS/lrCERWYA858k/fcN1c kXJdJavaIVxK/FHDZcognG3b65mXXbde4rv+yDo9YSOOQ/5586/Xtk5hE/+xV028x7Gm E7o9HlS9/m43k8M/BlHS67FdDNhWaJmMrlIpYACJg+o2CoQLJtKY4oMAJ6B1u9N2sv5o 42Ievg3IvJT/oZKVojkDBYk/lW2G/4k7t2hclENunCI8ZXpU4Rsb6Y/Q6wF3zHEl+Fds uSg4Mo/vgG9qcoWGnRe+3ehmhdZgHDo6/7PSCVS1pxEFCxu2D3gZjbfPlVmNwzmiwpwl Gh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4EPGTegqKPXKAAyeIfLrKfl7siBNbfsrmpWlio8SbTA=; b=WxSp2iBcW8wNp2HVkuj14gk4LKqCWT98GMMlj/vyRGxUnxMfpqRJysx+plj1ny8SvI oceyLfUQ5B0Q2Pk1szGFmj9kxgS0mnK31RX0wbRSKHIzmDafZMLNMZBSP+gpH1mrK/wn WKvTXciTpqxV6WNVuoMmFYU6+Ne0me6yc+2+U9Cu+mzOPLfU175tUhT3CRv9F0XkjNcV y37jaNHK9owgIDCoJH04BksTLrg923aFYXggXSMSN1TEeWwXPG/duWETg6p7PrbHJWwP tAJY1e9IUAuw1ODMi8bJnXgRhPf680Eee4zpBVwicXr2p/iyZ/3+BV7vOzU8Px5S6G0G Xmzw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si4362523eje.486.2021.01.28.21.08.18; Thu, 28 Jan 2021 21:09:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbhA2FHy (ORCPT + 99 others); Fri, 29 Jan 2021 00:07:54 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:55860 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhA2FHy (ORCPT ); Fri, 29 Jan 2021 00:07:54 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1l5Lyi-00027x-FU; Fri, 29 Jan 2021 16:05:53 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 29 Jan 2021 16:05:52 +1100 Date: Fri, 29 Jan 2021 16:05:52 +1100 From: Herbert Xu To: Allen Pais 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 , Romain Perier Subject: Re: [PATCH v4 01/19] crypto: amcc: convert tasklets to use new tasklet_setup() API Message-ID: <20210129050551.GA5586@gondor.apana.org.au> References: <20210121044126.152274-1-allen.lkml@gmail.com> <20210121044126.152274-2-allen.lkml@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210121044126.152274-2-allen.lkml@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jan 21, 2021 at 10:11:08AM +0530, Allen Pais wrote: > 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: Romain Perier > Signed-off-by: Allen Pais > --- > drivers/crypto/amcc/crypto4xx_core.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) This doesn't even compile: CC [M] drivers/crypto/amcc/crypto4xx_core.o CC [M] drivers/crypto/amcc/crypto4xx_alg.o CC [M] drivers/crypto/amcc/crypto4xx_trng.o CHECK ../drivers/crypto/amcc/crypto4xx_trng.c ../drivers/crypto/amcc/crypto4xx_core.c: In function ‘crypto4xx_cipher_done’: ../drivers/crypto/amcc/crypto4xx_core.c:526:13: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable] dma_addr_t addr; ^~~~ ../drivers/crypto/amcc/crypto4xx_core.c: In function ‘crypto4xx_ahash_done’: ../drivers/crypto/amcc/crypto4xx_core.c:557:24: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable] struct crypto4xx_ctx *ctx; ^~~ In file included from : ../drivers/crypto/amcc/crypto4xx_core.c: In function ‘crypto4xx_bh_tasklet_cb’: ../include/linux/kernel.h:694:51: error: ‘struct device’ has no member named ‘tasklet’ BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~ ./../include/linux/compiler_types.h:306:9: note: in definition of macro ‘__compiletime_assert’ if (!(condition)) \ ^~~~~~~~~ ./../include/linux/compiler_types.h:326:2: note: in expansion of macro ‘_compiletime_assert’ _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’ #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ ../include/linux/kernel.h:694:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’ BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~~~~~~ ../include/linux/kernel.h:694:20: note: in expansion of macro ‘__same_type’ BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~ ../include/linux/interrupt.h:646:2: note: in expansion of macro ‘container_of’ container_of(callback_tasklet, typeof(*var), tasklet_fieldname) ^~~~~~~~~~~~ ../drivers/crypto/amcc/crypto4xx_core.c:1078:23: note: in expansion of macro ‘from_tasklet’ struct device *dev = from_tasklet(dev, t, tasklet); ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:146:35: error: ‘struct device’ has no member named ‘tasklet’ #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) ^~~~~~~~~~~~~~~~~~ ../include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’ #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) ^~~~~~~~~~~~~~~~~~~ ../include/linux/kernel.h:697:21: note: in expansion of macro ‘offsetof’ ((type *)(__mptr - offsetof(type, member))); }) ^~~~~~~~ ../include/linux/interrupt.h:646:2: note: in expansion of macro ‘container_of’ container_of(callback_tasklet, typeof(*var), tasklet_fieldname) ^~~~~~~~~~~~ ../drivers/crypto/amcc/crypto4xx_core.c:1078:23: note: in expansion of macro ‘from_tasklet’ struct device *dev = from_tasklet(dev, t, tasklet); ^~~~~~~~~~~~ Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt