[lkml]   [2022]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] crypto: api - Use linux/cache.h instead of asm/cache.h
On Mon, Dec 05, 2022 at 10:52:25AM +1100, Stephen Rothwell wrote:
> Or maybe you should have included linux/cache.h instead of asm/cache.h?

You're right Stephen. Thanks!

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 <>
Signed-off-by: Herbert Xu <>

diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index 8722fd67f40a..61b327206b55 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -7,8 +7,8 @@

-#include <asm/cache.h>
#include <linux/align.h>
+#include <linux/cache.h>
#include <linux/crypto.h>
#include <linux/kconfig.h>
#include <linux/list.h>
Email: Herbert Xu <>
Home Page:
PGP Key:
 \ /
  Last update: 2022-12-05 05:32    [W:0.040 / U:1.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site