[PATCH] LoongArch: KVM: remove unnecessary header include path

Masahiro Yamada posted 1 patch 10 months, 1 week ago
arch/loongarch/kvm/Makefile | 2 --
1 file changed, 2 deletions(-)
[PATCH] LoongArch: KVM: remove unnecessary header include path
Posted by Masahiro Yamada 10 months, 1 week ago
arch/loongarch/kvm/ includes local headers with the double-quote form
(#include "..."). Also, TRACE_INCLUDE_PATH in arch/loongarch/kvm/trace.h
is relative to include/trace/.

Hence, the local header search path is unneeded.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/loongarch/kvm/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/loongarch/kvm/Makefile b/arch/loongarch/kvm/Makefile
index 3a01292f71cc..f4c8e35c216a 100644
--- a/arch/loongarch/kvm/Makefile
+++ b/arch/loongarch/kvm/Makefile
@@ -3,8 +3,6 @@
 # Makefile for LoongArch KVM support
 #
 
-ccflags-y += -I $(src)
-
 include $(srctree)/virt/kvm/Makefile.kvm
 
 obj-$(CONFIG_KVM) += kvm.o
-- 
2.43.0
Re: [PATCH] LoongArch: KVM: remove unnecessary header include path
Posted by bibo mao 10 months, 1 week ago
On 2025/2/10 下午6:21, Masahiro Yamada wrote:
> arch/loongarch/kvm/ includes local headers with the double-quote form
> (#include "..."). Also, TRACE_INCLUDE_PATH in arch/loongarch/kvm/trace.h
> is relative to include/trace/.
> 
> Hence, the local header search path is unneeded.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>   arch/loongarch/kvm/Makefile | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/arch/loongarch/kvm/Makefile b/arch/loongarch/kvm/Makefile
> index 3a01292f71cc..f4c8e35c216a 100644
> --- a/arch/loongarch/kvm/Makefile
> +++ b/arch/loongarch/kvm/Makefile
> @@ -3,8 +3,6 @@
>   # Makefile for LoongArch KVM support
>   #
>   
> -ccflags-y += -I $(src)
> -
>   include $(srctree)/virt/kvm/Makefile.kvm
>   
>   obj-$(CONFIG_KVM) += kvm.o
> 
Reviewed-by: Bibo Mao <maobibo@loongson.cn>