[PATCH v2] crypto: aspeed: fix build module error
Herbert Xu
herbert at gondor.apana.org.au
Tue Sep 6 14:53:19 AEST 2022
On Mon, Sep 05, 2022 at 10:54:33AM +0800, Neal Liu wrote:
> 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 at intel.com>
> Signed-off-by: Neal Liu <neal_liu at aspeedtech.com>
> Tested-by: Sudip Mukherjee <sudipm.mukherjee at gmail.com>
> ---
> v2: Remove redundant obj- lines.
>
> drivers/crypto/aspeed/Makefile | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the Linux-aspeed
mailing list