d33a6a3f | 13-Aug-2023 |
Herbert Xu <herbert@gondor.apana.org.au> |
crypto: aspeed - Remove non-standard sha512 algorithms
Algorithms must never be added to a driver unless there is a generic implementation. These truncated versions of sha512 slipped through. Remov
crypto: aspeed - Remove non-standard sha512 algorithms
Algorithms must never be added to a driver unless there is a generic implementation. These truncated versions of sha512 slipped through. Remove them as they are useless.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
e9040736 | 19-Jan-2023 |
ye xingchen <ye.xingchen@zte.com.cn> |
crypto: aspeed - Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactl
crypto: aspeed - Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
f104b216 | 09-Jan-2023 |
Gustavo A. R. Silva <gustavoars@kernel.org> |
crypto: aspeed - Replace zero-length array with flexible-array member
Zero-length arrays are deprecated[1] and we are moving towards adopting C99 flexible-array members instead. So, replace zero-len
crypto: aspeed - Replace zero-length array with flexible-array member
Zero-length arrays are deprecated[1] and we are moving towards adopting C99 flexible-array members instead. So, replace zero-length array declaration in struct aspeed_sham_ctx with flex-array member.
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [2].
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays [1] Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [2] Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Neal Liu <neal_liu@aspeedtech.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
70513e1d | 19-Sep-2022 |
YueHaibing <yuehaibing@huawei.com> |
crypto: aspeed - Fix check for platform_get_irq() errors
The platform_get_irq() function returns negative on error and positive non-zero values on success. It never returns zero, but if it did then
crypto: aspeed - Fix check for platform_get_irq() errors
The platform_get_irq() function returns negative on error and positive non-zero values on success. It never returns zero, but if it did then treat that as a success.
Also remove redundant dev_err() print as platform_get_irq() already prints an error.
Fixes: 108713a713c7 ("crypto: aspeed - Add HACE hash driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Neal Liu <neal_liu@aspeedtech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
dc377e01 | 29-Aug-2022 |
Sun Ke <sunke32@huawei.com> |
crypto: aspeed - fix return value check in aspeed_hace_probe()
In case of error, the function devm_ioremap_resource() returns ERR_PTR() not NULL. The NULL test in the return value check must be repl
crypto: aspeed - fix return value check in aspeed_hace_probe()
In case of error, the function devm_ioremap_resource() returns ERR_PTR() not NULL. The NULL test in the return value check must be replaced with IS_ERR().
Fixes: 108713a713c7 ("crypto: aspeed - Add HACE hash driver") Signed-off-by: Sun Ke <sunke32@huawei.com> Reviewed-by: Neal Liu<neal_liu@aspeedtech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
efc96d43 | 06-Sep-2022 |
Herbert Xu <herbert@gondor.apana.org.au> |
crypto: aspeed - Fix sparse warnings
This patch fixes a bunch of bit endianness warnings and two missing static modifiers.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Neal
crypto: aspeed - Fix sparse warnings
This patch fixes a bunch of bit endianness warnings and two missing static modifiers.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Neal Liu <neal_liu@aspeedtech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
aa450316 | 06-Sep-2022 |
Neal Liu <neal_liu@aspeedtech.com> |
crypto: aspeed: fix format unexpected build warning
This fixes the following similar build warning when enabling compile test:
aspeed-hace-hash.c:188:9: warning: format '%x' expects argument of typ
crypto: aspeed: fix format unexpected build warning
This fixes the following similar build warning when enabling compile test:
aspeed-hace-hash.c:188:9: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
2be57084 | 04-Sep-2022 |
Neal Liu <neal_liu@aspeedtech.com> |
crypto: aspeed - fix build module error
If CONFIG_MODULES=y and CONFIG_CRYPTO_DEV_ASPEED=m, build modpost would be failed.
Error messages: ERROR: modpost: "aspeed_register_hace_hash_algs" [driv
crypto: aspeed - fix build module error
If CONFIG_MODULES=y and CONFIG_CRYPTO_DEV_ASPEED=m, build modpost would be failed.
Error messages: ERROR: modpost: "aspeed_register_hace_hash_algs" [drivers/crypto/aspeed/aspeed_crypto.ko] undefined! ERROR: modpost: "aspeed_unregister_hace_hash_algs" [drivers/crypto/aspeed/aspeed_crypto.ko] undefined!
Change build sequence to fix this.
Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Tested-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|