* [PATCH] ARM: KVM: fix vgic-disabled build
@ 2014-09-30 11:38 Arnd Bergmann
2014-10-07 10:31 ` Christoffer Dall
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2014-09-30 11:38 UTC (permalink / raw)
To: linux-arm-kernel
The vgic code can be disabled in Kconfig and there are dummy implementations
of most of the provided API functions for the disabled case.
However, the newly introduced kvm_vgic_destroy/kvm_vgic_vcpu_destroy
functions are lacking those dummies, resulting in this build error:
arch/arm/kvm/arm.c: In function 'kvm_arch_destroy_vm':
arch/arm/kvm/arm.c:165:2: error: implicit declaration of function 'kvm_vgic_destroy' [-Werror=implicit-function-declaration]
kvm_vgic_destroy(kvm);
^
arch/arm/kvm/arm.c: In function 'kvm_arch_vcpu_free':
arch/arm/kvm/arm.c:248:2: error: implicit declaration of function 'kvm_vgic_vcpu_destroy' [-Werror=implicit-function-declaration]
kvm_vgic_vcpu_destroy(vcpu);
^
This adds two inline helpers to get it to build again in this configuration.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c1bfb577add ("arm/arm64: KVM: vgic: switch to dynamic allocation")
---
found during randconfig testing on -next
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index 2f2aac8448a4..ec559d3264cc 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -331,6 +331,14 @@ static inline int kvm_vgic_create(struct kvm *kvm)
return 0;
}
+static inline void kvm_vgic_destroy(struct kvm *kvm)
+{
+}
+
+static inline void kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu)
+{
+}
+
static inline int kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu)
{
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: KVM: fix vgic-disabled build
2014-09-30 11:38 [PATCH] ARM: KVM: fix vgic-disabled build Arnd Bergmann
@ 2014-10-07 10:31 ` Christoffer Dall
0 siblings, 0 replies; 2+ messages in thread
From: Christoffer Dall @ 2014-10-07 10:31 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 01:38:20PM +0200, Arnd Bergmann wrote:
> The vgic code can be disabled in Kconfig and there are dummy implementations
> of most of the provided API functions for the disabled case.
>
> However, the newly introduced kvm_vgic_destroy/kvm_vgic_vcpu_destroy
> functions are lacking those dummies, resulting in this build error:
>
> arch/arm/kvm/arm.c: In function 'kvm_arch_destroy_vm':
> arch/arm/kvm/arm.c:165:2: error: implicit declaration of function 'kvm_vgic_destroy' [-Werror=implicit-function-declaration]
> kvm_vgic_destroy(kvm);
> ^
> arch/arm/kvm/arm.c: In function 'kvm_arch_vcpu_free':
> arch/arm/kvm/arm.c:248:2: error: implicit declaration of function 'kvm_vgic_vcpu_destroy' [-Werror=implicit-function-declaration]
> kvm_vgic_vcpu_destroy(vcpu);
> ^
>
> This adds two inline helpers to get it to build again in this configuration.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: c1bfb577add ("arm/arm64: KVM: vgic: switch to dynamic allocation")
Hi Arnd,
Thanks for the fix, it has been applied.
-Christoffer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-07 10:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 11:38 [PATCH] ARM: KVM: fix vgic-disabled build Arnd Bergmann
2014-10-07 10:31 ` Christoffer Dall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox