Skip to content

Commit 110c155

Browse files
committed
drivers/virt: Drop VIRT_DRIVERS build dependency
All of the objects in drivers/virt/ have their own configuration symbols to gate compilation. I.e. nothing gets added to the kernel with CONFIG_VIRT_DRIVERS=y in isolation. Unconditionally descend into drivers/virt/ so that consumers do not need to add an additional CONFIG_VIRT_DRIVERS dependency. Fix warnings of the form: Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for TSM Depends on [n]: VIRT_DRIVERS [=n] Selected by [y]: - PCI_TSM [=y] && PCI [=y] ...where PCI_TSM selects CONFIG_TSM, but fails to select CONFIG_VIRT_DRIVERS. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202511041832.ylcgIiqN-lkp@intel.com/ Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20251113021446.436830-2-dan.j.williams@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent a4438f0 commit 110c155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ obj-$(CONFIG_RPMSG) += rpmsg/
160160
obj-$(CONFIG_SOUNDWIRE) += soundwire/
161161

162162
# Virtualization drivers
163-
obj-$(CONFIG_VIRT_DRIVERS) += virt/
163+
obj-y += virt/
164164
obj-$(CONFIG_HYPERV) += hv/
165165

166166
obj-$(CONFIG_PM_DEVFREQ) += devfreq/

0 commit comments

Comments
 (0)