Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp724243ybl; Fri, 24 Jan 2020 08:24:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzOcXRzGtPhEAcCL6waOLNDfpC2/likCL2RV2u7EG5JhY70Ql4tlkTpzzYFiWTKeyU1JP/K X-Received: by 2002:aca:b608:: with SMTP id g8mr13508oif.142.1579883097600; Fri, 24 Jan 2020 08:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579883097; cv=none; d=google.com; s=arc-20160816; b=VTyrEqBbrsHNNa164jgDeOtXxlB9ZWHXh3rxsl/uC3aEKQ+7LKV17G79RIi6iHOFqh 7qNhW6jCCY8RlzXjb+hf4ys750a4vDOjtHJaS9ZAuMfxPJVvm33sF/Quc/tzN5zVUYCP zBWij7cduUxkgpYFRGhrcL2YYImFn4aqHFuDKfQkyRg4MCwOL3Dn1JqOwzfafiBfWXbw nsJ1EvilhVb3ICbg0vkiVFID+w/xN0k4YjlUqMRjtuU3rd00N+5pY0VHKCsF5eP8OP8T 89ycUDTqNkiQDmn+YJEf0tB+b9WQiHn5pqxkWFCNcbpNez3UAgMYDagBotGnnlK6y9OO e54g== 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=jAsMbYXEFls7I2HjLYi0tzOm2+z/fOmi39ep5pRIMFq8MNnv6PKBxrTVucuPQiDBYg KexjXZYDXSjOToLvktxivP+TEGEoSY0raSaperJMeQhLcOkrSFCoxG5T2zV7mK/5OkgP GATt6WjSSjcxb3U5YPIMJVwY+x6glSnxKrAuDYQo2/DzLUrE/h66dQ0ff9bQzmvslOr/ 1IHC2QEOCK6Q1W1oi8Jt7hhNUMftpuv7fmZvK4Srjyz9GJRWhFtHgrFtNjLg7z3yLVQ+ JI1ioUA+JFy+VxP10NStR+4ZKjdxq1hu5ZkjSb5LJtBnh5w7tIS4e3iPGzLaoac0Ma8+ Snpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XakBO4Vh; 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 r6si2997303otq.95.2020.01.24.08.24.45; Fri, 24 Jan 2020 08:24:57 -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=XakBO4Vh; 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 S1727215AbgAXLIa (ORCPT + 99 others); Fri, 24 Jan 2020 06:08:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:43894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389659AbgAXLI0 (ORCPT ); Fri, 24 Jan 2020 06:08:26 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (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 E3CA821734; Fri, 24 Jan 2020 11:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864105; bh=9MKGgbGkktR6LgpRauOiAnZovKnboxbvvj4O2cBM3+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XakBO4VhOAgy+h3LCrlHUFtJru6STt2nPG8WWbzhBbYrBkbGlL4tpx+j+khQNOS9t 0B5HgXfcKKfOom9gUx8Luaa7Agm0dpz8kWXY0+dVTazUQc2ca1rz7ZbPHdK1D3mXIM MH2ivCIZtL+osJaMT0XO0P8BJRJsL3ATIZ9nCSJI= 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.19 157/639] crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments Date: Fri, 24 Jan 2020 10:25:27 +0100 Message-Id: <20200124093106.864619779@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@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