* [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header
@ 2018-03-28 14:05 Arnd Bergmann
2018-03-29 11:43 ` Harsh Jain
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2018-03-28 14:05 UTC (permalink / raw)
To: Harsh Jain, Herbert Xu, David S. Miller
Cc: Arnd Bergmann, Ganesh Goudar, Atul Gupta, Yeshaswi M R Gowda,
linux-crypto, linux-kernel
static function declarations don't belong in a header file, as shown
by this compiler warning:
In file included from /git/arm-soc/drivers/crypto/chelsio/chcr_ipsec.c:66:
drivers/crypto/chelsio/chcr_crypto.h:343:12: error: 'chcr_ahash_continue' declared 'static' but never defined [-Werror=unused-function]
This moves the declaration into the file that actually needs it.
Fixes: 5110e65536f3 ("crypto: chelsio -Split Hash requests for large scatter gather list")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/crypto/chelsio/chcr_algo.c | 1 +
drivers/crypto/chelsio/chcr_crypto.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index 4617c7acf4da..ebc96f2fae01 100644
--- a/drivers/crypto/chelsio/chcr_algo.c
+++ b/drivers/crypto/chelsio/chcr_algo.c
@@ -95,6 +95,7 @@ static u32 round_constant[11] = {
static int chcr_handle_cipher_resp(struct ablkcipher_request *req,
unsigned char *input, int err);
+static int chcr_ahash_continue(struct ahash_request *req);
static inline struct chcr_aead_ctx *AEAD_CTX(struct chcr_context *ctx)
{
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h
index 71025ea9c3db..c8e8972af283 100644
--- a/drivers/crypto/chelsio/chcr_crypto.h
+++ b/drivers/crypto/chelsio/chcr_crypto.h
@@ -340,5 +340,4 @@ void chcr_add_hash_src_ent(struct ahash_request *req, struct ulptx_sgl *ulptx,
struct hash_wr_param *param);
int chcr_hash_dma_map(struct device *dev, struct ahash_request *req);
void chcr_hash_dma_unmap(struct device *dev, struct ahash_request *req);
-static int chcr_ahash_continue(struct ahash_request *req);
#endif /* __CHCR_CRYPTO_H__ */
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header
2018-03-28 14:05 [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header Arnd Bergmann
@ 2018-03-29 11:43 ` Harsh Jain
0 siblings, 0 replies; 2+ messages in thread
From: Harsh Jain @ 2018-03-29 11:43 UTC (permalink / raw)
To: Arnd Bergmann, Herbert Xu, David S. Miller
Cc: Ganesh Goudar, Atul Gupta, linux-crypto, linux-kernel
Hi,
Fix for that is already submitted in below patch.
https://patchwork.kernel.org/patch/10292333/
Thanks
On 28-03-2018 19:35, Arnd Bergmann wrote:
> static function declarations don't belong in a header file, as shown
> by this compiler warning:
>
> In file included from /git/arm-soc/drivers/crypto/chelsio/chcr_ipsec.c:66:
> drivers/crypto/chelsio/chcr_crypto.h:343:12: error: 'chcr_ahash_continue' declared 'static' but never defined [-Werror=unused-function]
>
> This moves the declaration into the file that actually needs it.
>
> Fixes: 5110e65536f3 ("crypto: chelsio -Split Hash requests for large scatter gather list")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/crypto/chelsio/chcr_algo.c | 1 +
> drivers/crypto/chelsio/chcr_crypto.h | 1 -
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
> index 4617c7acf4da..ebc96f2fae01 100644
> --- a/drivers/crypto/chelsio/chcr_algo.c
> +++ b/drivers/crypto/chelsio/chcr_algo.c
> @@ -95,6 +95,7 @@ static u32 round_constant[11] = {
>
> static int chcr_handle_cipher_resp(struct ablkcipher_request *req,
> unsigned char *input, int err);
> +static int chcr_ahash_continue(struct ahash_request *req);
>
> static inline struct chcr_aead_ctx *AEAD_CTX(struct chcr_context *ctx)
> {
> diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h
> index 71025ea9c3db..c8e8972af283 100644
> --- a/drivers/crypto/chelsio/chcr_crypto.h
> +++ b/drivers/crypto/chelsio/chcr_crypto.h
> @@ -340,5 +340,4 @@ void chcr_add_hash_src_ent(struct ahash_request *req, struct ulptx_sgl *ulptx,
> struct hash_wr_param *param);
> int chcr_hash_dma_map(struct device *dev, struct ahash_request *req);
> void chcr_hash_dma_unmap(struct device *dev, struct ahash_request *req);
> -static int chcr_ahash_continue(struct ahash_request *req);
> #endif /* __CHCR_CRYPTO_H__ */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-29 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 14:05 [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header Arnd Bergmann
2018-03-29 11:43 ` Harsh Jain
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.