x86/hyperv: Remove duplicate include

Message ID 20230824080352.98945-1-jiapeng.chong@linux.alibaba.com
State New
Headers
Series x86/hyperv: Remove duplicate include |

Commit Message

Jiapeng Chong Aug. 24, 2023, 8:03 a.m. UTC
  ./arch/x86/hyperv/ivm.c: asm/sev.h is included more than once.
./arch/x86/hyperv/ivm.c: asm/coco.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6212
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 arch/x86/hyperv/ivm.c | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Wei Liu Aug. 25, 2023, 12:06 a.m. UTC | #1
On Thu, Aug 24, 2023 at 04:03:52PM +0800, Jiapeng Chong wrote:
> ./arch/x86/hyperv/ivm.c: asm/sev.h is included more than once.
> ./arch/x86/hyperv/ivm.c: asm/coco.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6212
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Applied to hyperv-next, thanks!
  

Patch

diff --git a/arch/x86/hyperv/ivm.c b/arch/x86/hyperv/ivm.c
index 1448c6338971..55d43415a2fd 100644
--- a/arch/x86/hyperv/ivm.c
+++ b/arch/x86/hyperv/ivm.c
@@ -18,9 +18,7 @@ 
 #include <asm/mshyperv.h>
 #include <asm/hypervisor.h>
 #include <asm/mtrr.h>
-#include <asm/coco.h>
 #include <asm/io_apic.h>
-#include <asm/sev.h>
 #include <asm/realmode.h>
 #include <asm/e820/api.h>
 #include <asm/desc.h>