crypto: api - Use linux/cache.h instead of asm/cache.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Dec 2022 04:31:44 +0000 (12:31 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Dec 2022 08:39:18 +0000 (16:39 +0800)
Directly including asm/cache.h leads to build failures on powerpc
so replace it with linux/cache.h instead.

Fixes: e634ac4a8aaa ("crypto: api - Add crypto_tfm_ctx_dma")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/algapi.h

index 8722fd6..61b3272 100644 (file)
@@ -7,8 +7,8 @@
 #ifndef _CRYPTO_ALGAPI_H
 #define _CRYPTO_ALGAPI_H
 
-#include <asm/cache.h>
 #include <linux/align.h>
+#include <linux/cache.h>
 #include <linux/crypto.h>
 #include <linux/kconfig.h>
 #include <linux/list.h>