CONFIG_BLK_CGROUP is a boolean option, that is, its value is 'y' or 'n'.
The comparison to 'y' is redundant.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
block/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -112,7 +112,7 @@ config BLK_WBT_MQconfigBLK_CGROUP_IOLATENCYbool"Enable support for latency based cgroup IO protection"-depends onBLK_CGROUP=y+depends onBLK_CGROUPhelpEnablingthisoptionenablesthe.latencyinterfaceforIOthrottling.TheIOcontrollerwillattempttomaintainaverageIOlatenciesbelow
@@ -132,7 +132,7 @@ config BLK_CGROUP_FC_APPIDconfigBLK_CGROUP_IOCOSTbool"Enable support for cost model based cgroup IO controller"-depends onBLK_CGROUP=y+depends onBLK_CGROUPselectBLK_RQ_IO_DATA_LENselectBLK_RQ_ALLOC_TIMEhelp
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>
---
block/Kconfig | 18 +++++++-----------
block/Kconfig.iosched | 4 ----
2 files changed, 7 insertions(+), 15 deletions(-)
@@ -196,33 +196,29 @@ source "block/partitions/Kconfig"endmenu-endif# BLOCK-configBLOCK_COMPAT-bool-depends onBLOCK&&COMPAT-defaulty+def_boolCOMPATconfigBLK_MQ_PCI-bool-depends onBLOCK&&PCI-defaulty+def_boolPCIconfigBLK_MQ_VIRTIObool-depends onBLOCK&&VIRTIO+depends onVIRTIOdefaultyconfigBLK_MQ_RDMAbool-depends onBLOCK&&INFINIBAND+depends onINFINIBANDdefaultyconfigBLK_PM-def_boolBLOCK&&PM+def_boolPM# do not use in new codeconfigBLOCK_HOLDER_DEPRECATEDboolsource"block/Kconfig.iosched"++endif# BLOCK
Every object under block/ depends on CONFIG_BLOCK.
Move the guard to the top Makefile since there is no point to
descend into block/ if CONFIG_BLOCK=n.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
Makefile | 3 ++-
block/Makefile | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
@@ -3,7 +3,7 @@# Makefile for the kernel block layer#-obj-$(CONFIG_BLOCK):=bdev.ofops.obio.oelevator.oblk-core.oblk-sysfs.o\+obj-y:=bdev.ofops.obio.oelevator.oblk-core.oblk-sysfs.o\blk-flush.oblk-settings.oblk-ioc.oblk-map.o\blk-exec.oblk-merge.oblk-timeout.o\blk-lib.oblk-mq.oblk-mq-tag.oblk-stat.o\