Skip to content

Commit 6e88098

Browse files
montjoieherbertx
authored andcommitted
crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments
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: 5343e67 ("crypto4xx: integrate ppc4xx-rng into crypto4xx") Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent b04a27c commit 6e88098

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/crypto/amcc/crypto4xx_trng.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
2626
void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
2727
#else
2828
static inline void ppc4xx_trng_probe(
29-
struct crypto4xx_device *dev __maybe_unused) { }
29+
struct crypto4xx_core_device *dev __maybe_unused) { }
3030
static inline void ppc4xx_trng_remove(
31-
struct crypto4xx_device *dev __maybe_unused) { }
31+
struct crypto4xx_core_device *dev __maybe_unused) { }
3232
#endif
3333

3434
#endif

0 commit comments

Comments
 (0)