Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp63965ima; Thu, 31 Jan 2019 23:03:45 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib99Ls1KpRiGoT3+ZggutD690ZCaQmhiYRyuIFXNpXsVwQy94K3WF9QJRfgWrFPMsuVbj3U X-Received: by 2002:a63:4706:: with SMTP id u6mr1086797pga.95.1549004625207; Thu, 31 Jan 2019 23:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549004625; cv=none; d=google.com; s=arc-20160816; b=x0AjjVPtJZQGrwiSoS7aoIdq23dZz+t6D5yXK0fJavBxlWdJx0iRTfiV0hbESiJpOW NEebSZ+88sKLvTLtsESygQLBB4Xs6Ijt2MCVnoZQrBdvTTP0xecK3tJtNoeMggDvAc0L 15J5r0VzT8zPoMq3JhvpGL8xajfIgLFoFO7cjHsthB5nknGsa0pzss5JmU40ittK+cmP Vld/ntND6NzUXkcN2dwkQQ1IEGBEytF69s46fsrJfDyx5zaDcrCWPCLnHxiA8/+QuRDc xCFMi4pVol12WYnEeS1uxz6ZbDOLEfuzFrAUNSeCfhqicsOr/k5xqUvzBiL5z/PHD00z 6Ydw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hCHzuWZCDxXps5r/9rG69Gzc8uNw9yoTYtCfMuM8AWE=; b=sU+R6aCWbawT/aFrsdO9WKBXcVHn6wpC4C+3ERCBixgp9mLSi7fjBXMshpAFBN+zlW joWk6VIdmFvYZV2RvnHJe8csbOkITZ2GCMfvsP3IoCW3GcTngY+gX6Rw3ZgsG6ncm5MZ Nmfb01+NYZXe9vMI3vDH+7qAIoAnT6T4YF1TPhlly4SQhI08VyKKhdC2JG48qmC/qHGF LtEpkA2Y4J2cxFiJWz2jmiKwrLVG+Ddcrtqnc5vbpc9TKdnD0YmKThWwwVqda7Ajh+5d 2+qOu/Ph40xpbp047aYfls3MVS2B0XVwGxSsruUYHAipWuFjP9B7VKfanGOgOR4j14Sb IGLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si3213534pfi.251.2019.01.31.23.03.25; Thu, 31 Jan 2019 23:03:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728114AbfBAGt7 (ORCPT + 99 others); Fri, 1 Feb 2019 01:49:59 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:56962 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfBAGt7 (ORCPT ); Fri, 1 Feb 2019 01:49:59 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1gpSe9-0000A6-Dx; Fri, 01 Feb 2019 14:49:53 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1gpSe7-0005ma-VO; Fri, 01 Feb 2019 14:49:51 +0800 Date: Fri, 1 Feb 2019 14:49:51 +0800 From: Herbert Xu To: Corentin Labbe Cc: chunkeey@googlemail.com, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto4xx: Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments Message-ID: <20190201064951.ecnljqb4xji57grj@gondor.apana.org.au> References: <1548242658-9395-1-git-send-email-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548242658-9395-1-git-send-email-clabbe@baylibre.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 11:24:18AM +0000, Corentin Labbe wrote: > When building without CONFIG_HW_RANDOM_PPC4XX, I hit the following build failure: > drivers/crypto/amcc/crypto4xx_core.c: In function 'crypto4xx_probe': > drivers/crypto/amcc/crypto4xx_core.c:1407:20: error: passing argument 1 of 'ppc4xx_trng_probe' from incompatible pointer type [-Werror=incompatible-pointer-types] > In file included from drivers/crypto/amcc/crypto4xx_core.c:50:0: > drivers/crypto/amcc/crypto4xx_trng.h:28:20: note: expected 'struct crypto4xx_device *' but argument is of type 'struct crypto4xx_core_device *' > drivers/crypto/amcc/crypto4xx_core.c: In function 'crypto4xx_remove': > drivers/crypto/amcc/crypto4xx_core.c:1434:21: error: passing argument 1 of 'ppc4xx_trng_remove' from incompatible pointer type [-Werror=incompatible-pointer-types] > In file included from drivers/crypto/amcc/crypto4xx_core.c:50:0: > drivers/crypto/amcc/crypto4xx_trng.h:30:20: note: expected 'struct crypto4xx_device *' but argument is of type 'struct crypto4xx_core_device *' > > This patch fix the needed argument of ppc4xx_trng_probe()/ppc4xx_trng_remove() in that case. > > Fixes: 5343e674f32f ("crypto4xx: integrate ppc4xx-rng into crypto4xx") > Signed-off-by: Corentin Labbe > --- > drivers/crypto/amcc/crypto4xx_trng.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt