@@ -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)
{
@@ -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__ */
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(-) -- 2.9.0