Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp460472ybl; Tue, 28 Jan 2020 06:19:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzPg2S1RT82Qh7pPhC0f6mKqVHzS+L3Ivwdw2QOVCdaWzvTlfeYlBZw/M4WN2qQH6a23/h7 X-Received: by 2002:aca:f10:: with SMTP id 16mr2781692oip.117.1580221168346; Tue, 28 Jan 2020 06:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221168; cv=none; d=google.com; s=arc-20160816; b=KfCW22uYaWliAnr3FAxxU4zrkyGttY0tZC4slLMEkveJpaK6wChAC2AldLReWSTUov Gh5GL+EmSSEMDfKFs/uYQse6rKoLAdD2fXePvPaiSOwK76UGwQhQDushDwn9kNujH3yV 2P+x/Y4kAJPZH/uE/Kh8PGOmGSGv2QDunFqDXhmZ3gpQ8sZso9HltC6oKcH2RBrdscEL dVuXXYfXDYtYdX+TEWFr0d/yxBmS8/D3Z81NGniXjUpDg/hDCpbyZFoBTmBCjufLxGiO QRmjy3+1qdIuvEbKoMcRKblgdvFoAo58S+h3BN1E8HKISq6CPtoL0pUxlGHI+TwAtFNA uaUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=drEmVQUWdA/fXXhaoJ050fUXHkFnaaA9D6Gu6fOICNk=; b=srW8dR4XLmjipqLLWBYe9HNTMlkAaicUSuLMC3j5fy/t3cl6PgvmMUk5i8mU424ges JqpNTL8A7IizmPcuqwxRpT/lu5asb0hJeaFyh4JDSyEiGKgZ4FmHWk1fPGyf21LKzOBO Fd96wD+UfAmdALYScDac/SAcbyPi831vqgKkAvdHqgUDJ1wNU3ZU7NLih7/6/gmiEjjD dByKcD13bv+DbMaXd/Ki/0lw7EDCDJULSS1DTXF23t+H3KtviTv9DdaO+URIgTyJwMiw lrMOR+BjzdfyFy5Q/emn0/dh6VlFeOi05qXb/Hn4ltYcsGqAdw7+HODjB3CozizUYLoG yOWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HyGN6oEB; 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 y20si9189782otq.190.2020.01.28.06.19.15; Tue, 28 Jan 2020 06:19:28 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HyGN6oEB; 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 S1729724AbgA1OQt (ORCPT + 99 others); Tue, 28 Jan 2020 09:16:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:40322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgA1OQs (ORCPT ); Tue, 28 Jan 2020 09:16:48 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D1F224681; Tue, 28 Jan 2020 14:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221007; bh=9MKGgbGkktR6LgpRauOiAnZovKnboxbvvj4O2cBM3+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HyGN6oEBExH7UmA+VuGjBlNQwa/hJ4GjlxT4wP4L0+qiy0qbZ+PRAW3Fao+sJy9Jf QknK+uPMj6znWnEGmeSCBsrLJnjTlEEDvOYDcH4UVopTFm5zqcCIPd8K4C8md3X3O6 eVOP7ZuVweRnXUTPfF5BkN1eZgpLc3yh8xXIAJRk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , Herbert Xu , Sasha Levin Subject: [PATCH 4.9 051/271] crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments Date: Tue, 28 Jan 2020 15:03:20 +0100 Message-Id: <20200128135856.440129336@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe [ Upstream commit 6e88098ca43a3d80ae86908f7badba683c8a0d84 ] 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 Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/amcc/crypto4xx_trng.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/amcc/crypto4xx_trng.h b/drivers/crypto/amcc/crypto4xx_trng.h index 931d22531f515..7bbda51b7337c 100644 --- a/drivers/crypto/amcc/crypto4xx_trng.h +++ b/drivers/crypto/amcc/crypto4xx_trng.h @@ -26,9 +26,9 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev); void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev); #else static inline void ppc4xx_trng_probe( - struct crypto4xx_device *dev __maybe_unused) { } + struct crypto4xx_core_device *dev __maybe_unused) { } static inline void ppc4xx_trng_remove( - struct crypto4xx_device *dev __maybe_unused) { } + struct crypto4xx_core_device *dev __maybe_unused) { } #endif #endif -- 2.20.1