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(-)
@@ -135,7 +135,7 @@ config BLK_WBTconfigBLK_CGROUP_IOLATENCYbool"Enable support for latency based cgroup IO protection"-depends onBLK_CGROUP=y+depends onBLK_CGROUPhelpEnablingthisoptionenablesthe.latencyinterfaceforIOthrottling.TheIOcontrollerwillattempttomaintainaverageIOlatenciesbelow
@@ -146,7 +146,7 @@ config BLK_CGROUP_IOLATENCYconfigBLK_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. 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(-)
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):=bio.oelevator.oblk-core.oblk-sysfs.o\+obj-y:=bio.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\