]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix debugfs compilation issues
authorOmar Sandoval <osandov@fb.com>
Fri, 27 Jan 2017 22:03:01 +0000 (15:03 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:03:01 +0000 (15:03 -0700)
commit6a9f5333f81fc67477007637ebffcc4146e8ee7a
tree02e545b69739e1577c97f37ece486ccb555b8249
parentbba6457ea183fa15be2f3bbf4fc21a569dbaa8ee
blk-mq: fix debugfs compilation issues

This fixes a couple of problems:

1. In the !CONFIG_DEBUG_FS case, the stub definitions were bogus.
2. In the !CONFIG_BLOCK case, blk-mq-debugfs.c shouldn't be compiled at
   all.

Fix the stub definitions and add a CONFIG_BLK_DEBUG_FS Kconfig option.

Fixes: 20bca2bff897 ("blk-mq: create debugfs directory tree")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Augment Kconfig description.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/Kconfig
block/Makefile
block/blk-mq.h