Skip to contentSkip to conversation

virt: acrn: add hotplug_cpu dependency

PATCH In review Arnd Bergmann 3 participants 5 messages Feb 25, 2021 – Mar 4, 2021 Acrn hypervisor service module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt: acrn: add hotplug_cpu dependency

From: Arnd Bergmann <[email protected]>

Without CPU hotplug, acrn fails to build:

drivers/virt/acrn/hsm.c:389:3: error: implicit declaration of function 'remove_cpu' [-Werror,-Wimplicit-function-declaration]

                remove_cpu(cpu);
                ^
drivers/virt/acrn/hsm.c:402:2: error: implicit declaration of function 'add_cpu' [-Werror,-Wimplicit-function-declaration]
        add_cpu(cpu);
        ^

Enforce the dependency through Kconfig to avoid the build failure.

Fixes 666834c47d3b ("virt: acrn: Introduce ACRN HSM basic driver")
---
 drivers/virt/acrn/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/virt/acrn/Kconfig +1 -0
index 3e1a61c9d8d8..fbb0e3234aaf 100644
@@ -2,6 +2,7 @@
 config ACRN_HSM
 	tristate "ACRN Hypervisor Service Module"
 	depends on ACRN_GUEST
+	depends on HOTPLUG_CPU
 	select EVENTFD
 	help
 	  ACRN Hypervisor Service Module (HSM) is a kernel module which
Signature · 1 line
2.29.2
#1 lore raw

Hi Arnd,

There is already a patchset for this build issue. Please refer to
https://lore.kernel.org/lkml/[email protected]/.

Hi Greg, Would you like accept that patchset in you tree?

Thanks
shuo

Quoted 34 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without CPU hotplug, acrn fails to build:

drivers/virt/acrn/hsm.c:389:3: error: implicit declaration of function 'remove_cpu' [-Werror,-Wimplicit-function-declaration]

               remove_cpu(cpu);
               ^
drivers/virt/acrn/hsm.c:402:2: error: implicit declaration of function 'add_cpu' [-Werror,-Wimplicit-function-declaration]
       add_cpu(cpu);
       ^

Enforce the dependency through Kconfig to avoid the build failure.

Fixes 666834c47d3b ("virt: acrn: Introduce ACRN HSM basic driver")

---
drivers/virt/acrn/Kconfig | 1 +

1 file changed, 1 insertion(+)
drivers/virt/acrn/Kconfig +0 -0
index 3e1a61c9d8d8..fbb0e3234aaf 100644
@@ -2,6 +2,7 @@

config ACRN_HSM
tristate "ACRN Hypervisor Service Module"
depends on ACRN_GUEST

drivers/virt/acrn/Kconfig +1 -0
+	depends on HOTPLUG_CPU

select EVENTFD
help
ACRN Hypervisor Service Module (HSM) is a kernel module which

Signature · 1 line
2.29.2
#2 lore raw
Quoted 6 lines · Shuo A Liu

Hi Arnd,

There is already a patchset for this build issue. Please refer to
https://lore.kernel.org/lkml/[email protected]/.

Hi Greg, Would you like accept that patchset in you tree?

I can't take anything new in my tree until 5.12-rc1 is out. When that happens I will go through everything submitted to me and merge fixes like this one and get them sent to Linus in a week or so.

thanks,

greg k-h

#3 lore raw
Quoted 11 lines · Greg Kroah-Hartman
Quoted 6 lines · Shuo A Liu

Hi Arnd,

There is already a patchset for this build issue. Please refer to
https://lore.kernel.org/lkml/[email protected]/.

Hi Greg, Would you like accept that patchset in you tree?

I can't take anything new in my tree until 5.12-rc1 is out. When that happens I will go through everything submitted to me and merge fixes like this one and get them sent to Linus in a week or so.

OK. Thanks for the information.

Thanks
shuo

#4 lore raw
Quoted 7 lines · Shuo A Liu
Quoted 6 lines · Greg Kroah-Hartman
Quoted 5 lines · Shuo A Liu

Hi Arnd,

There is already a patchset for this build issue. Please refer to
https://lore.kernel.org/lkml/[email protected]/.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Hi Greg, Would you like accept that patchset in you tree?

I can't take anything new in my tree until 5.12-rc1 is out. When that happens I will go through everything submitted to me and merge fixes like this one and get them sent to Linus in a week or so.

OK. Thanks for the information.

Now in my tree and will show up in linux-next tomorrow.

thanks,

greg k-h