path: root/block/blk-mq-pci.c
diff options
authorStephen Rothwell <>2016-09-19 15:50:16 +1000
committerJens Axboe <>2016-09-19 08:21:51 -0600
commit8ec2ef2b66ea2fd00acc28aca8edaad441dbb424 (patch)
tree5f46c82958d879c841ae666c7fbeb1a520eb08db /block/blk-mq-pci.c
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 <> Reviewed-by: Christoph Hellwig <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/blk-mq-pci.c')
1 files changed, 2 insertions, 0 deletions
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 @@
* 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>