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

chenqingyun001@208suo.com posted 1 patch 2 years, 6 months ago
arch/arm64/lib/uaccess_flushcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] KVM: arm64:#include <linux/cacheflush.h> instead of <asm/cacheflush.h>
Posted by chenqingyun001@208suo.com 2 years, 6 months ago
<linux/cacheflush.h> is a generic header file,
while <asm/cacheflush.h> is an x86
architecture-specific header file

Signed-off-by: Qingyun Chen <chenqingyun001@208suo.com>
---
  arch/arm64/lib/uaccess_flushcache.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/lib/uaccess_flushcache.c 
b/arch/arm64/lib/uaccess_flushcache.c
index 7510d1a23124..cf8052f6e091 100644
--- a/arch/arm64/lib/uaccess_flushcache.c
+++ b/arch/arm64/lib/uaccess_flushcache.c
@@ -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)
  {
Re: [PATCH] KVM: arm64:#include <linux/cacheflush.h> instead of <asm/cacheflush.h>
Posted by Will Deacon 2 years, 6 months ago
On Fri, Jul 14, 2023 at 01:09:10PM +0800, chenqingyun001@208suo.com wrote:
> <linux/cacheflush.h> is a generic header file,
> while <asm/cacheflush.h> is an x86
> architecture-specific header file

wut?

Will

> Signed-off-by: Qingyun Chen <chenqingyun001@208suo.com>
> ---
>  arch/arm64/lib/uaccess_flushcache.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/lib/uaccess_flushcache.c
> b/arch/arm64/lib/uaccess_flushcache.c
> index 7510d1a23124..cf8052f6e091 100644
> --- a/arch/arm64/lib/uaccess_flushcache.c
> +++ b/arch/arm64/lib/uaccess_flushcache.c
> @@ -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)
>  {