aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2016-09-19 01:50:16 -0400
committerJens Axboe <axboe@fb.com>2016-09-19 10:21:51 -0400
commit8ec2ef2b66ea2fd00acc28aca8edaad441dbb424 (patch)
tree5f46c82958d879c841ae666c7fbeb1a520eb08db /block
parent9151bcb4fb38aab04cdc67cc3b3e11396db1b8b4 (diff)
blk_mq: linux/blk-mq.h does not include all the headers it depends on
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>
Diffstat (limited to 'block')
-rw-r--r--block/Kconfig5
-rw-r--r--block/Makefile2
-rw-r--r--block/blk-mq-pci.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/block/Kconfig b/block/Kconfig
index 161491d0a879..515533802af1 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -124,4 +124,9 @@ config BLOCK_COMPAT
124 depends on BLOCK && COMPAT 124 depends on BLOCK && COMPAT
125 default y 125 default y
126 126
127config BLK_MQ_PCI
128 bool
129 depends on BLOCK && PCI
130 default y
131
127source block/Kconfig.iosched 132source block/Kconfig.iosched
diff --git a/block/Makefile b/block/Makefile
index 2447a0b1ef9c..37a0d93f97bb 100644
--- a/block/Makefile
+++ b/block/Makefile
@@ -22,4 +22,4 @@ obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
22obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o 22obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
23obj-$(CONFIG_BLK_CMDLINE_PARSER) += cmdline-parser.o 23obj-$(CONFIG_BLK_CMDLINE_PARSER) += cmdline-parser.o
24obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o t10-pi.o 24obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o t10-pi.o
25obj-$(CONFIG_PCI) += blk-mq-pci.o 25obj-$(CONFIG_BLK_MQ_PCI) += blk-mq-pci.o
diff --git a/block/blk-mq-pci.c b/block/blk-mq-pci.c
index 33c7bd743c63..966c2169762e 100644
--- a/block/blk-mq-pci.c
+++ b/block/blk-mq-pci.c
@@ -10,6 +10,8 @@
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details. 11 * more details.
12 */ 12 */
13#include <linux/kobject.h>
14#include <linux/blkdev.h>
13#include <linux/blk-mq.h> 15#include <linux/blk-mq.h>
14#include <linux/blk-mq-pci.h> 16#include <linux/blk-mq-pci.h>
15#include <linux/pci.h> 17#include <linux/pci.h>