From patchwork Wed Jan 23 11:24:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 10777111 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1336D1390 for ; Wed, 23 Jan 2019 11:24:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02FAA2B2DE for ; Wed, 23 Jan 2019 11:24:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E820E2B35E; Wed, 23 Jan 2019 11:24:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69BD92B2DE for ; Wed, 23 Jan 2019 11:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726804AbfAWLYZ (ORCPT ); Wed, 23 Jan 2019 06:24:25 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42741 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727015AbfAWLYZ (ORCPT ); Wed, 23 Jan 2019 06:24:25 -0500 Received: by mail-wr1-f68.google.com with SMTP id q18so1960723wrx.9 for ; Wed, 23 Jan 2019 03:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=frm1VMyBnwXapbVBQbQmtvxrwaLvFY7ynrwmcgx7S7s=; b=JLGl0iAeOUU+TIcS3Vzyq+6mVgLKfDpL3r3dLjdvaraayP6CXatZ/Cb9qMUcGug1lJ iOcggUMj+X2ISBQ5rff5DKJpqbtiIf+ztyJAmZ6vDWXhBpmTaruUg8ZRXebcOe4+fBrM bQtAzsREYNSG4Cwm7lVOfbvRKRjtuqoNY0olMTg4eMZdM/ouG+Fv7ty07oMbRT1sR3ic QJv6D8+JhkztbHhTNX89fsxrh9dYXtkdY0ltAfpSvqkm6JJhcaM7W2WBJUYMvhhhQOBE ccsBVEqn0dzgey7NmvwbYcWJ2yub2JBB/mH5FVd8AfEX4DZUKhuOTMhUiBhznyjzH6zh Lsyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=frm1VMyBnwXapbVBQbQmtvxrwaLvFY7ynrwmcgx7S7s=; b=gpnGSU5SdEcwf5cak/ETQupoLA9RqGqR7rKYBUvRmVVVuFToHGBCvO8/xzYh1+c+47 aeygmD1KrmVnkOGCWhlck6EExdkduuqmi8t38ScmqV7auxNs/wOY4qUx4F3GEu4e5/Im YcJf4oLMPqVOaTm3FxrmcdvOjIVp/1ZKSQktgxk80vPgexZBdfzHjR+5eGb/U4Jwxwlt wOgbgJmPhTqcaRdrSugKAtPETR4f0T5E4pvSmY1IEde1qqf7xQxGXJ7Jfe4LUG7wiuGe DY5jDqBz0N8R54h78GI9KUHqZFw1fd/6Av7MISrrObYmDAT6ObM2moJpB20pUbapbPWT 73KA== X-Gm-Message-State: AJcUukc2B9dO1BJmuEcqT499e1vDDOwHwcQMLeUqx9bACYZYrzJ96cDu K6zJmh1CAhJUOL2DyxbN/WZRPw== X-Google-Smtp-Source: ALg8bN4g1YD2yMw+RWTqZYR58gMX4n1e5IMCzBI44sUFfnmku5zD59o6heVNbdwWxCwoW+me6ER+zg== X-Received: by 2002:a5d:6244:: with SMTP id m4mr2237935wrv.314.1548242663996; Wed, 23 Jan 2019 03:24:23 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id m6sm75939095wrv.24.2019.01.23.03.24.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Jan 2019 03:24:23 -0800 (PST) From: Corentin Labbe To: chunkeey@googlemail.com, davem@davemloft.net, herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] crypto4xx: Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments Date: Wed, 23 Jan 2019 11:24:18 +0000 Message-Id: <1548242658-9395-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) diff --git a/drivers/crypto/amcc/crypto4xx_trng.h b/drivers/crypto/amcc/crypto4xx_trng.h index 931d22531f51..7bbda51b7337 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