Skip to content

Commit

Permalink
block: simplify Kconfig files
Browse files Browse the repository at this point in the history
Everything under block/ depends on BLOCK. BLOCK_HOLDER_DEPRECATED is
selected from drivers/md/Kconfig, which is entirely dependent on BLOCK.

Extend the 'if BLOCK' ... 'endif' so it covers the whole block/Kconfig.

Also, clean up the definition of BLOCK_COMPAT and BLK_MQ_PCI because
COMPAT and PCI are boolean.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210927140000.866249-3-masahiroy@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Masahiro Yamada authored and Jens Axboe committed Oct 18, 2021
1 parent df252bd commit c50fca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
18 changes: 7 additions & 11 deletions block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -196,33 +196,29 @@ source "block/partitions/Kconfig"

endmenu

endif # BLOCK

config BLOCK_COMPAT
bool
depends on BLOCK && COMPAT
default y
def_bool COMPAT

config BLK_MQ_PCI
bool
depends on BLOCK && PCI
default y
def_bool PCI

config BLK_MQ_VIRTIO
bool
depends on BLOCK && VIRTIO
depends on VIRTIO
default y

config BLK_MQ_RDMA
bool
depends on BLOCK && INFINIBAND
depends on INFINIBAND
default y

config BLK_PM
def_bool BLOCK && PM
def_bool PM

# do not use in new code
config BLOCK_HOLDER_DEPRECATED
bool

source "block/Kconfig.iosched"

endif # BLOCK
4 changes: 0 additions & 4 deletions block/Kconfig.iosched
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
if BLOCK

menu "IO Schedulers"

config MQ_IOSCHED_DEADLINE
Expand Down Expand Up @@ -45,5 +43,3 @@ config BFQ_CGROUP_DEBUG
files in a cgroup which can be useful for debugging.

endmenu

endif

0 comments on commit c50fca5

Please sign in to comment.