blk_mq: linux/blk-mq.h does not include all the headers it depends on
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Sep 2016 05:50:16 +0000 (15:50 +1000)
committerJens Axboe <axboe@fb.com>
Mon, 19 Sep 2016 14:21:51 +0000 (08:21 -0600)
and building block/blk-mq-pci.o should depend on CONFIG_BLOCK

Fixes: 973c4e372c8f ("blk-mq: provide a default queue mapping for PCI device")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/Kconfig
block/Makefile
block/blk-mq-pci.c

index 161491d0a879ed11ce2276a1923a60bc1d92479e..515533802af15e7eb6899d04361d679949add549 100644 (file)
@@ -124,4 +124,9 @@ config BLOCK_COMPAT
        depends on BLOCK && COMPAT
        default y
 
+config BLK_MQ_PCI
+       bool
+       depends on BLOCK && PCI
+       default y
+
 source block/Kconfig.iosched
index 2447a0b1ef9cf1ed21e88693ef03ecc2a9f8ba68..37a0d93f97bb6f75f6f047e066c86ac1433e7402 100644 (file)
@@ -22,4 +22,4 @@ obj-$(CONFIG_IOSCHED_CFQ)     += cfq-iosched.o
 obj-$(CONFIG_BLOCK_COMPAT)     += compat_ioctl.o
 obj-$(CONFIG_BLK_CMDLINE_PARSER)       += cmdline-parser.o
 obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o t10-pi.o
-obj-$(CONFIG_PCI)              += blk-mq-pci.o
+obj-$(CONFIG_BLK_MQ_PCI)       += blk-mq-pci.o
index 33c7bd743c6365c0ae55d4308eb30603b7afac2b..966c2169762eb4d951011531e101fb1b3809d7e8 100644 (file)
@@ -10,6 +10,8 @@
  * 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>