2021-10-27 21:45:40

by CGEL

[permalink] [raw]
Subject: [PATCH] x86/hyperv: remove duplicate include in hv_init.c

From: ran jianping <[email protected]>

'linux/io.h' included in 'arch/x86/hyperv/hv_init.c'
is duplicated.It is also included on the 23 line.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: ran jianping <[email protected]>
---
arch/x86/hyperv/hv_init.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
index a16a83e46a30..4fb7c7bb164e 100644
--- a/arch/x86/hyperv/hv_init.c
+++ b/arch/x86/hyperv/hv_init.c
@@ -20,7 +20,6 @@
#include <linux/kexec.h>
#include <linux/version.h>
#include <linux/vmalloc.h>
-#include <linux/io.h>
#include <linux/mm.h>
#include <linux/hyperv.h>
#include <linux/slab.h>
--
2.25.1


2021-10-28 11:31:23

by Wei Liu

[permalink] [raw]
Subject: Re: [PATCH] x86/hyperv: remove duplicate include in hv_init.c

On Wed, Oct 27, 2021 at 08:18:08AM +0000, [email protected] wrote:
> From: ran jianping <[email protected]>
>
> 'linux/io.h' included in 'arch/x86/hyperv/hv_init.c'
> is duplicated.It is also included on the 23 line.
>
> Reported-by: Zeal Robot <[email protected]>
> Signed-off-by: ran jianping <[email protected]>

This is fixed by an earlier patch which happened to be sent out one day
before yours. I just picked that one up.

Thanks anyway.

Wei.

> ---
> arch/x86/hyperv/hv_init.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index a16a83e46a30..4fb7c7bb164e 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -20,7 +20,6 @@
> #include <linux/kexec.h>
> #include <linux/version.h>
> #include <linux/vmalloc.h>
> -#include <linux/io.h>
> #include <linux/mm.h>
> #include <linux/hyperv.h>
> #include <linux/slab.h>
> --
> 2.25.1
>