mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
972b812bd1
caam/qi driver does not compile when DEBUG is enabled
(CRYPTO_DEV_FSL_CAAM_DEBUG=y):
drivers/crypto/caam/caamalg_qi.c: In function 'ablkcipher_done':
drivers/crypto/caam/caamalg_qi.c:794:2: error: implicit declaration of function 'dbg_dump_sg' [-Werror=implicit-function-declaration]
dbg_dump_sg(KERN_ERR, "dst @" __stringify(__LINE__)": ",
Since dbg_dump_sg() is shared between caam/jr and caam/qi, move it
in a shared location and export it.
At the same time:
-reduce ifdeferry by providing a no-op implementation for !DEBUG case
-rename it to caam_dump_sg() to be consistent in terms of
exported symbols namespace (caam_*)
Cc: <stable@vger.kernel.org>
Fixes: b189817cf7
("crypto: caam/qi - add ablkcipher and authenc algorithms")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
16 lines
422 B
C
16 lines
422 B
C
/*
|
|
* CAAM Error Reporting code header
|
|
*
|
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#ifndef CAAM_ERROR_H
|
|
#define CAAM_ERROR_H
|
|
#define CAAM_ERROR_STR_MAX 302
|
|
void caam_jr_strstatus(struct device *jrdev, u32 status);
|
|
|
|
void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
|
|
int rowsize, int groupsize, struct scatterlist *sg,
|
|
size_t tlen, bool ascii);
|
|
#endif /* CAAM_ERROR_H */
|