Skip to contentSkip to conversation

x86: jailhouse: add PCI dependency

PATCH New Arnd Bergmann 2 participants 2 messages Jan 15, 2018 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: jailhouse: add PCI dependency

Building jailhouse support without PCI results in a link error:

arch/x86/kernel/jailhouse.o: In function `jailhouse_init_platform':
jailhouse.c:(.init.text+0x235): undefined reference to pci_probe' arch/x86/kernel/jailhouse.o: In function jailhouse_pci_arch_init':
jailhouse.c:(.init.text+0x265): undefined reference to pci_direct_init' jailhouse.c:(.init.text+0x26c): undefined reference to pcibios_last_bus'

This adds the missing Kconfig dependency.

Fixes a0c01e4bb92d ("x86/jailhouse: Initialize PCI support")
---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index 10fcb4d147be..0878ff57fec3 100644
@@ -813,7 +813,7 @@ config PARAVIRT_CLOCK
 
 config JAILHOUSE_GUEST
 	bool "Jailhouse non-root cell support"
-	depends on X86_64
+	depends on X86_64 && PCI
 	select X86_PM_TIMER
 	---help---
 	  This option allows to run Linux as guest in a Jailhouse non-root
Signature · 1 line
2.9.0
#1 lore raw

[tip:x86/platform] x86/jailhouse: Add PCI dependency

x86/jailhouse: Add PCI dependency
Commit-ID:  abde587b61a3ddb2918385f95ef2b3ca37d5a017
Gitweb:     https://git.kernel.org/tip/abde587b61a3ddb2918385f95ef2b3ca37d5a017
Author:     Arnd Bergmann <[email protected]>
AuthorDate: Mon, 15 Jan 2018 16:51:20 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 15 Jan 2018 17:46:59 +0100

x86/jailhouse: Add PCI dependency

Building jailhouse support without PCI results in a link error:

arch/x86/kernel/jailhouse.o: In function `jailhouse_init_platform':
jailhouse.c:(.init.text+0x235): undefined reference to pci_probe' arch/x86/kernel/jailhouse.o: In function jailhouse_pci_arch_init':
jailhouse.c:(.init.text+0x265): undefined reference to pci_direct_init' jailhouse.c:(.init.text+0x26c): undefined reference to pcibios_last_bus'

Add the missing Kconfig dependency.

Fixes a0c01e4bb92d ("x86/jailhouse: Initialize PCI support")
Cc Jan Kiszka <[email protected]>
---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index a936e29..390be2e 100644
@@ -798,7 +798,7 @@ config PARAVIRT_CLOCK
 
 config JAILHOUSE_GUEST
 	bool "Jailhouse non-root cell support"
-	depends on X86_64
+	depends on X86_64 && PCI
 	select X86_PM_TIMER
 	---help---
 	  This option allows to run Linux as guest in a Jailhouse non-root