Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
blk_mq: linux/blk-mq.h does not include all the headers it depends on
Browse files Browse the repository at this point in the history
and building block/blk-mq-pci.o should depend on CONFIG_BLOCK

Fixes: 973c4e3 ("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>
  • Loading branch information
sfrothwell authored and axboe committed Sep 19, 2016
1 parent 9151bcb commit 8ec2ef2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion block/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions block/blk-mq-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8ec2ef2

Please sign in to comment.