--- zzzz-none-000/linux-4.19.183/drivers/md/Makefile 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/drivers/md/Makefile 2023-06-28 08:54:19.000000000 +0000 @@ -69,6 +69,12 @@ obj-$(CONFIG_DM_ZONED) += dm-zoned.o obj-$(CONFIG_DM_WRITECACHE) += dm-writecache.o +ifdef BCM_KF #defined(CONFIG_BCM_KF_DM_CREATE_BACKPORT) +ifeq ($(CONFIG_DM_INIT),y) +dm-mod-objs += dm-init.o +endif +endif #defined(CONFIG_BCM_KF_DM_CREATE_BACKPORT) + ifeq ($(CONFIG_DM_UEVENT),y) dm-mod-objs += dm-uevent.o endif