Skip to contentSkip to conversation

KVM: arm64:#include <linux/cacheflush.h> instead of <asm/cacheflush.h>

PATCH In review [email protected] 2 participants 2 messages Jul 14, 2023 1 message not in the archive arm64

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 KVM: arm64:#include <linux/cacheflush.h> instead of <asm/cacheflush.h>

<linux/cacheflush.h> is a generic header file,
while <asm/cacheflush.h> is an x86
architecture-specific header file

---
 arch/arm64/lib/uaccess_flushcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/lib/uaccess_flushcache.c +1 -1
index 7510d1a23124..cf8052f6e091 100644
@@ -5,7 +5,7 @@
 
 #include <linux/uaccess.h>
 #include <asm/barrier.h>
-#include <asm/cacheflush.h>
+#include <linux/cacheflush.h>
 
 void memcpy_flushcache(void *dst, const void *src, size_t cnt)
 {
maintainer
#2 lore raw
Quoted 3 lines · On Fri, Jul 14, 2023 at 01:09:10PM +0800, [email protected] wrote:

<linux/cacheflush.h> is a generic header file,
while <asm/cacheflush.h> is an x86
architecture-specific header file

wut?

Will

Quoted 19 lines
---
 arch/arm64/lib/uaccess_flushcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/lib/uaccess_flushcache.c +1 -1
index 7510d1a23124..cf8052f6e091 100644
@@ -5,7 +5,7 @@
 
 #include <linux/uaccess.h>
 #include <asm/barrier.h>
-#include <asm/cacheflush.h>
+#include <linux/cacheflush.h>
 
 void memcpy_flushcache(void *dst, const void *src, size_t cnt)
 {