2023-10-18 01:06:13

by Yang Li

[permalink] [raw]
Subject: [PATCH -next] PCI: Remove duplicated include in pci.c

./drivers/pci/pci.c: linux/bitfield.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6898
Signed-off-by: Yang Li <[email protected]>
---
drivers/pci/pci.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 5b70eefc38fc..92b8dafec0d9 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -32,7 +32,6 @@
#include <linux/vmalloc.h>
#include <asm/dma.h>
#include <linux/aer.h>
-#include <linux/bitfield.h>
#include "pci.h"

DEFINE_MUTEX(pci_slot_mutex);
--
2.20.1.7.g153144c


2023-10-18 01:42:27

by Bjorn Helgaas

[permalink] [raw]
Subject: Re: [PATCH -next] PCI: Remove duplicated include in pci.c

[+cc Ilpo]

On Wed, Oct 18, 2023 at 09:05:51AM +0800, Yang Li wrote:
> ./drivers/pci/pci.c: linux/bitfield.h is included more than once.
>
> Reported-by: Abaci Robot <[email protected]>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6898
> Signed-off-by: Yang Li <[email protected]>

I folded this into the commit that added the duplicate, thanks!

https://lore.kernel.org/r/[email protected]

> ---
> drivers/pci/pci.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 5b70eefc38fc..92b8dafec0d9 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -32,7 +32,6 @@
> #include <linux/vmalloc.h>
> #include <asm/dma.h>
> #include <linux/aer.h>
> -#include <linux/bitfield.h>
> #include "pci.h"
>
> DEFINE_MUTEX(pci_slot_mutex);
> --
> 2.20.1.7.g153144c
>