Skip to contentSkip to conversation

drivers: Select dependencies for the VIRTUALIZATION symbol

PATCH In review Markos Chandras 3 participants 3 messages Jun 7, 2013 – Jun 9, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: Select dependencies for the VIRTUALIZATION symbol

The VIRTUALIZATION symbol depends on HAVE_KVM but CONFIG_REMOTEPROC and CONFIG_RPMSG do not select HAVE_KVM leading to the following warning and build problems later on:

warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)
warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)

---
 drivers/remoteproc/Kconfig | 1 +
 drivers/rpmsg/Kconfig      | 1 +
 2 files changed, 2 insertions(+)
drivers/remoteproc/Kconfig +1 -0
index d4d377c..79648ca 100644
@@ -6,6 +6,7 @@ config REMOTEPROC
 	depends on HAS_DMA
 	select CRC32
 	select FW_LOADER
+	select HAVE_KVM
 	select VIRTIO
 	select VIRTUALIZATION
 
drivers/rpmsg/Kconfig +1 -0
index 69a2193..3f0bd0f 100644
@@ -3,6 +3,7 @@ menu "Rpmsg drivers"
 # RPMSG always gets selected by whoever wants it
 config RPMSG
 	tristate
+	select HAVE_KVM
 	select VIRTIO
 	select VIRTUALIZATION
 
Signature · 1 line
1.8.2.1
#1 lore raw
Quoted 11 lines · Markos Chandras

The VIRTUALIZATION symbol depends on HAVE_KVM but CONFIG_REMOTEPROC and CONFIG_RPMSG do not select HAVE_KVM leading to the following warning and build problems later on:

warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)
warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)

This seems odd. Usually architectures declare that they HAVE_xyz and then drivers etc. can use that symbol to do (or not do) something.

See Documentation/kbuild/kconfig-language.txt and search for /HAVE_/.

Quoted 30 lines
---
 drivers/remoteproc/Kconfig | 1 +
 drivers/rpmsg/Kconfig      | 1 +
 2 files changed, 2 insertions(+)
drivers/remoteproc/Kconfig +1 -0
index d4d377c..79648ca 100644
@@ -6,6 +6,7 @@ config REMOTEPROC
 	depends on HAS_DMA
 	select CRC32
 	select FW_LOADER
+	select HAVE_KVM
 	select VIRTIO
 	select VIRTUALIZATION
 
drivers/rpmsg/Kconfig +1 -0
index 69a2193..3f0bd0f 100644
@@ -3,6 +3,7 @@ menu "Rpmsg drivers"
 # RPMSG always gets selected by whoever wants it
 config RPMSG
 	tristate
+	select HAVE_KVM
 	select VIRTIO
 	select VIRTUALIZATION
 
Signature · 1 line
~Randy
#2 lore raw
Quoted 45 lines · Randy Dunlap
Quoted 11 lines · Markos Chandras

The VIRTUALIZATION symbol depends on HAVE_KVM but CONFIG_REMOTEPROC and CONFIG_RPMSG do not select HAVE_KVM leading to the following warning and build problems later on:

warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)
warning: (REMOTEPROC && RPMSG) selects VIRTUALIZATION which has unmet direct dependencies (HAVE_KVM)

This seems odd. Usually architectures declare that they HAVE_xyz and then drivers etc. can use that symbol to do (or not do) something.

See Documentation/kbuild/kconfig-language.txt and search for /HAVE_/.

Quoted 27 lines
---
 drivers/remoteproc/Kconfig | 1 +
 drivers/rpmsg/Kconfig      | 1 +
 2 files changed, 2 insertions(+)
drivers/remoteproc/Kconfig +1 -0
index d4d377c..79648ca 100644
@@ -6,6 +6,7 @@ config REMOTEPROC
      depends on HAS_DMA
      select CRC32
      select FW_LOADER
+     select HAVE_KVM
      select VIRTIO
      select VIRTUALIZATION
 
drivers/rpmsg/Kconfig +1 -0
index 69a2193..3f0bd0f 100644
@@ -3,6 +3,7 @@ menu "Rpmsg drivers"
 # RPMSG always gets selected by whoever wants it
 config RPMSG
      tristate
+     select HAVE_KVM
      select VIRTIO
Quoted 8 lines

drivers/rpmsg/Kconfig menu "Rpmsg drivers" · line 9

Quoted 3 lines
drivers/rpmsg/Kconfig +0 -0
      select VIRTUALIZATION
 

--
~Randy
--

Hi Randy,

Thanks for the review. Ok makes sense now. I will prepare a new patch.

--
Regards,
Markos Chandras