2021-05-13 11:53:48

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] vdpa_sim_blk: Fix duplicate included linux/blkdev.h

Clean up the following includecheck warning:

./drivers/vdpa/vdpa_sim/vdpa_sim_blk.c: linux/blkdev.h is included more
than once.

No functional change.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
index 5bfe1c2..a790903 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
@@ -15,7 +15,6 @@
#include <linux/blkdev.h>
#include <linux/vringh.h>
#include <linux/vdpa.h>
-#include <linux/blkdev.h>
#include <uapi/linux/virtio_blk.h>

#include "vdpa_sim.h"
--
1.8.3.1



2021-05-13 14:44:44

by Stefano Garzarella

[permalink] [raw]
Subject: Re: [PATCH] vdpa_sim_blk: Fix duplicate included linux/blkdev.h

On Thu, May 13, 2021 at 07:05:00PM +0800, Jiapeng Chong wrote:
>Clean up the following includecheck warning:
>
>./drivers/vdpa/vdpa_sim/vdpa_sim_blk.c: linux/blkdev.h is included more
>than once.
>
>No functional change.
>
>Reported-by: Abaci Robot <[email protected]>
>Signed-off-by: Jiapeng Chong <[email protected]>
>---
> drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 1 -
> 1 file changed, 1 deletion(-)

Wan sent a similar patch a couple of days ago:
https://lore.kernel.org/patchwork/patch/1422992/

Thanks,
Stefano

>
>diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
>index 5bfe1c2..a790903 100644
>--- a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
>+++ b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
>@@ -15,7 +15,6 @@
> #include <linux/blkdev.h>
> #include <linux/vringh.h>
> #include <linux/vdpa.h>
>-#include <linux/blkdev.h>
> #include <uapi/linux/virtio_blk.h>
>
> #include "vdpa_sim.h"
>--
>1.8.3.1
>