2021-04-13 14:20:16

by Yang Li

[permalink] [raw]
Subject: [PATCH] Drivers: hv: vmbus: remove unused including <linux/version.h>

Fix the following versioncheck warning:
./drivers/hv/hv.c: 16 linux/version.h not needed.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
---
drivers/hv/hv.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index f202ac7..2c3ae4d 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -13,7 +13,6 @@
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/hyperv.h>
-#include <linux/version.h>
#include <linux/random.h>
#include <linux/clockchips.h>
#include <clocksource/hyperv_timer.h>
--
1.8.3.1


2021-04-13 17:44:30

by Wei Liu

[permalink] [raw]
Subject: Re: [PATCH] Drivers: hv: vmbus: remove unused including <linux/version.h>

On Tue, Apr 13, 2021 at 05:49:18PM +0800, Yang Li wrote:
> Fix the following versioncheck warning:
> ./drivers/hv/hv.c: 16 linux/version.h not needed.
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Yang Li <[email protected]>

Thanks for the patch. This has also been reported by Huawei's kernel bot
and fixed in hyperv-next.

Wei.