Loading
redhat/configs: automotive: disable CONFIG_MD
CONFIG_MD=y has no effect in automotive; the subsystem's Makefile doesn't have any obj-y additions, and the only Kconfigs enabled in automotive that are used in the subsystem's Makefile are:
$ git grep -Pho '\$\(CONFIG_[^)]+\)' drivers/md/Makefile |
sort -u |
tr -d '$()' |
xargs -I{} grep -F "{}=" redhat/configs/kernel-*-automotive*.config
redhat/configs/kernel-7.2.0-aarch64-automotive.config:CONFIG_BLK_DEV_ZONED=y
redhat/configs/kernel-7.2.0-aarch64-automotive-debug.config:CONFIG_BLK_DEV_ZONED=y
redhat/configs/kernel-7.2.0-x86_64-automotive.config:CONFIG_BLK_DEV_ZONED=y
redhat/configs/kernel-7.2.0-x86_64-automotive-debug.config:CONFIG_BLK_DEV_ZONED=y
redhat/configs/kernel-7.2.0-aarch64-automotive.config:CONFIG_IMA=y
redhat/configs/kernel-7.2.0-aarch64-automotive-debug.config:CONFIG_IMA=y
redhat/configs/kernel-7.2.0-x86_64-automotive.config:CONFIG_IMA=y
redhat/configs/kernel-7.2.0-x86_64-automotive-debug.config:CONFIG_IMA=yThese Kconfigs are only used to modify dm-mod.o, which isn't built in automotive kernels since it depends on CONFIG_BLK_DEV_DM.
CONFIG_MD is also the only MD-related Kconfig that's enabled in automotive:
$ grep -P 'CONFIG_(.+_)?MD[_=]' redhat/configs/kernel-*-automotive*.config
redhat/configs/kernel-6.12.0-aarch64-automotive.config:CONFIG_MD=y
redhat/configs/kernel-6.12.0-aarch64-automotive-debug.config:CONFIG_MD=y
redhat/configs/kernel-6.12.0-x86_64-automotive.config:CONFIG_MD=y
redhat/configs/kernel-6.12.0-x86_64-automotive-debug.config:CONFIG_MD=ySince the Kconfig is essentially a no-op, disable it in automotive kernels.
Downstream CS10 MR: redhat/centos-stream/src/kernel/centos-stream-10!3256 (merged)
Signed-off-by: Jared Kangas jkangas@redhat.com
Edited by Jared Kangas