2021-10-27 21:20:43

by Jiapeng Chong

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

Clean up the following includecheck warning:

./arch/x86/hyperv/ivm.c: linux/bitfield.h is included more than once.
./arch/x86/hyperv/ivm.c: linux/types.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
arch/x86/hyperv/ivm.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/x86/hyperv/ivm.c b/arch/x86/hyperv/ivm.c
index 4d012fd..69c7a57 100644
--- a/arch/x86/hyperv/ivm.c
+++ b/arch/x86/hyperv/ivm.c
@@ -6,11 +6,9 @@
* Tianyu Lan <[email protected]>
*/

-#include <linux/types.h>
#include <linux/bitfield.h>
#include <linux/hyperv.h>
#include <linux/types.h>
-#include <linux/bitfield.h>
#include <linux/slab.h>
#include <asm/svm.h>
#include <asm/sev.h>
--
1.8.3.1


2021-10-28 11:39:50

by Wei Liu

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

On Wed, Oct 27, 2021 at 04:57:02PM +0800, Jiapeng Chong wrote:
> Clean up the following includecheck warning:
>
> ./arch/x86/hyperv/ivm.c: linux/bitfield.h is included more than once.
> ./arch/x86/hyperv/ivm.c: linux/types.h is included more than once.
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Jiapeng Chong <[email protected]>

Applied to hyperv-next. Thanks.

> ---
> arch/x86/hyperv/ivm.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/x86/hyperv/ivm.c b/arch/x86/hyperv/ivm.c
> index 4d012fd..69c7a57 100644
> --- a/arch/x86/hyperv/ivm.c
> +++ b/arch/x86/hyperv/ivm.c
> @@ -6,11 +6,9 @@
> * Tianyu Lan <[email protected]>
> */
>
> -#include <linux/types.h>
> #include <linux/bitfield.h>
> #include <linux/hyperv.h>
> #include <linux/types.h>
> -#include <linux/bitfield.h>
> #include <linux/slab.h>
> #include <asm/svm.h>
> #include <asm/sev.h>
> --
> 1.8.3.1
>