2024-03-22 06:18:00

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] x86/virt/tdx: Remove duplicate include

/arch/x86/virt/vmx/tdx/tdx.c: linux/acpi.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8609
Signed-off-by: Jiapeng Chong <[email protected]>
---
arch/x86/virt/vmx/tdx/tdx.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c
index 4d6826a76f78..49a1c6890b55 100644
--- a/arch/x86/virt/vmx/tdx/tdx.c
+++ b/arch/x86/virt/vmx/tdx/tdx.c
@@ -27,7 +27,6 @@
#include <linux/log2.h>
#include <linux/acpi.h>
#include <linux/suspend.h>
-#include <linux/acpi.h>
#include <asm/page.h>
#include <asm/special_insns.h>
#include <asm/msr-index.h>
--
2.20.1.7.g153144c



2024-03-22 06:38:49

by Huang, Kai

[permalink] [raw]
Subject: Re: [PATCH] x86/virt/tdx: Remove duplicate include

On Fri, 2024-03-22 at 14:17 +0800, Jiapeng Chong wrote:
> ./arch/x86/virt/vmx/tdx/tdx.c: linux/acpi.h is included more than once.
>
> Reported-by: Abaci Robot <[email protected]>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8609
> Signed-off-by: Jiapeng Chong <[email protected]>
> ---
> arch/x86/virt/vmx/tdx/tdx.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c
> index 4d6826a76f78..49a1c6890b55 100644
> --- a/arch/x86/virt/vmx/tdx/tdx.c
> +++ b/arch/x86/virt/vmx/tdx/tdx.c
> @@ -27,7 +27,6 @@
> #include <linux/log2.h>
> #include <linux/acpi.h>
> #include <linux/suspend.h>
> -#include <linux/acpi.h>
> #include <asm/page.h>
> #include <asm/special_insns.h>
> #include <asm/msr-index.h>

Thanks:

Reviewed-by: Kai Huang <[email protected]>

Subject: [tip: x86/cleanups] x86/virt/tdx: Remove duplicate include

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID: 27d45fc7df2d9026185e86a7e45f3dd17f3e8ba4
Gitweb: https://git.kernel.org/tip/27d45fc7df2d9026185e86a7e45f3dd17f3e8ba4
Author: Jiapeng Chong <[email protected]>
AuthorDate: Fri, 22 Mar 2024 14:17:41 +08:00
Committer: Ingo Molnar <[email protected]>
CommitterDate: Fri, 22 Mar 2024 09:35:43 +01:00

x86/virt/tdx: Remove duplicate include

/arch/x86/virt/vmx/tdx/tdx.c: linux/acpi.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]

Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8609
---
arch/x86/virt/vmx/tdx/tdx.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c
index 4d6826a..49a1c68 100644
--- a/arch/x86/virt/vmx/tdx/tdx.c
+++ b/arch/x86/virt/vmx/tdx/tdx.c
@@ -27,7 +27,6 @@
#include <linux/log2.h>
#include <linux/acpi.h>
#include <linux/suspend.h>
-#include <linux/acpi.h>
#include <asm/page.h>
#include <asm/special_insns.h>
#include <asm/msr-index.h>