diff mbox

blk-mq-pci: Remove unneeded includes

Message ID 1491474816-15422-1-git-send-email-sagi@grimberg.me (mailing list archive)
State New, archived
Headers show

Commit Message

Sagi Grimberg April 6, 2017, 10:33 a.m. UTC
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
---
 block/blk-mq-pci.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Christoph Hellwig April 6, 2017, 11:51 a.m. UTC | #1
Stephen added the first two includes after a linux-next build
failure.  Did this go through a long buildbot cycle to verify
it's really not needed anymore?

On Thu, Apr 06, 2017 at 01:33:36PM +0300, Sagi Grimberg wrote:
> Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
> ---
>  block/blk-mq-pci.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/block/blk-mq-pci.c b/block/blk-mq-pci.c
> index 0c3354cf3552..70b8a6765cc7 100644
> --- a/block/blk-mq-pci.c
> +++ b/block/blk-mq-pci.c
> @@ -10,12 +10,9 @@
>   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
>   * more details.
>   */
> -#include <linux/kobject.h>
> -#include <linux/blkdev.h>
>  #include <linux/blk-mq.h>
>  #include <linux/blk-mq-pci.h>
>  #include <linux/pci.h>
> -#include <linux/module.h>
>  
>  /**
>   * blk_mq_pci_map_queues - provide a default queue mapping for PCI device
> -- 
> 2.7.4
---end quoted text---
Sagi Grimberg April 6, 2017, 11:58 a.m. UTC | #2
> Stephen added the first two includes after a linux-next build
> failure.  Did this go through a long buildbot cycle to verify
> it's really not needed anymore?

Umm no. I just compiled it and ran and it worked...

If these are actually needed then we can safely discard
this patch.
diff mbox

Patch

diff --git a/block/blk-mq-pci.c b/block/blk-mq-pci.c
index 0c3354cf3552..70b8a6765cc7 100644
--- a/block/blk-mq-pci.c
+++ b/block/blk-mq-pci.c
@@ -10,12 +10,9 @@ 
  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  * more details.
  */
-#include <linux/kobject.h>
-#include <linux/blkdev.h>
 #include <linux/blk-mq.h>
 #include <linux/blk-mq-pci.h>
 #include <linux/pci.h>
-#include <linux/module.h>
 
 /**
  * blk_mq_pci_map_queues - provide a default queue mapping for PCI device