diff mbox series

[06/10] crypto: atmel-ecc: Struct headers need to start with keyword 'struct'

Message ID 20210318124422.3200180-7-lee.jones@linaro.org
State Accepted
Commit 71057841feaa6c1b5a80959013e588b2cdf9aef1
Headers show
Series Rid W=1 warnings in Crypto | expand

Commit Message

Lee Jones March 18, 2021, 12:44 p.m. UTC
Fixes the following W=1 kernel build warning(s):

 drivers/crypto/atmel-ecc.c:41: warning: cannot understand function prototype: 'struct atmel_ecdh_ctx '

Cc: Tudor Ambarus <tudor.ambarus@microchip.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: linux-crypto@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/crypto/atmel-ecc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.27.0

Comments

Tudor Ambarus March 22, 2021, 9:12 a.m. UTC | #1
On 3/18/21 2:44 PM, Lee Jones wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

> 

> Fixes the following W=1 kernel build warning(s):

> 

>  drivers/crypto/atmel-ecc.c:41: warning: cannot understand function prototype: 'struct atmel_ecdh_ctx '

> 

> Cc: Tudor Ambarus <tudor.ambarus@microchip.com>

> Cc: Herbert Xu <herbert@gondor.apana.org.au>

> Cc: "David S. Miller" <davem@davemloft.net>

> Cc: Nicolas Ferre <nicolas.ferre@microchip.com>

> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>

> Cc: Ludovic Desroches <ludovic.desroches@microchip.com>

> Cc: linux-crypto@vger.kernel.org

> Cc: linux-arm-kernel@lists.infradead.org

> Signed-off-by: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>

> ---

>  drivers/crypto/atmel-ecc.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c

> index 515946c99394e..333fbefbbccbd 100644

> --- a/drivers/crypto/atmel-ecc.c

> +++ b/drivers/crypto/atmel-ecc.c

> @@ -26,7 +26,7 @@

>  static struct atmel_ecc_driver_data driver_data;

> 

>  /**

> - * atmel_ecdh_ctx - transformation context

> + * struct atmel_ecdh_ctx - transformation context

>   * @client     : pointer to i2c client device

>   * @fallback   : used for unsupported curves or when user wants to use its own

>   *               private key.

> --

> 2.27.0

>
diff mbox series

Patch

diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c
index 515946c99394e..333fbefbbccbd 100644
--- a/drivers/crypto/atmel-ecc.c
+++ b/drivers/crypto/atmel-ecc.c
@@ -26,7 +26,7 @@ 
 static struct atmel_ecc_driver_data driver_data;
 
 /**
- * atmel_ecdh_ctx - transformation context
+ * struct atmel_ecdh_ctx - transformation context
  * @client     : pointer to i2c client device
  * @fallback   : used for unsupported curves or when user wants to use its own
  *               private key.