* [PATCH] KVM: PPC: Book3S HV: Fix build error when SMP=n
@ 2016-10-20 3:57 Michael Ellerman
2016-10-26 10:21 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2016-10-20 3:57 UTC (permalink / raw)
To: linuxppc-dev; +Cc: paulus
Commit 5d375199ea96 ("KVM: PPC: Book3S HV: Set server for passed-through
interrupts") broke the SMP=n build:
arch/powerpc/kvm/book3s_hv_rm_xics.c:758:2: error: implicit declaration of function 'get_hard_smp_processor_id'
That is because we lost the implicit include of asm/smp.h, so include it
explicitly to get the definition for get_hard_smp_processor_id().
Fixes: 5d375199ea96 ("KVM: PPC: Book3S HV: Set server for passed-through interrupts")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
arch/powerpc/kvm/book3s_hv_rm_xics.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kvm/book3s_hv_rm_xics.c b/arch/powerpc/kvm/book3s_hv_rm_xics.c
index 82ff5de8b1e7..a0ea63ac2b52 100644
--- a/arch/powerpc/kvm/book3s_hv_rm_xics.c
+++ b/arch/powerpc/kvm/book3s_hv_rm_xics.c
@@ -23,6 +23,7 @@
#include <asm/ppc-opcode.h>
#include <asm/pnv-pci.h>
#include <asm/opal.h>
+#include <asm/smp.h>
#include "book3s_xics.h"
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: KVM: PPC: Book3S HV: Fix build error when SMP=n
2016-10-20 3:57 [PATCH] KVM: PPC: Book3S HV: Fix build error when SMP=n Michael Ellerman
@ 2016-10-26 10:21 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2016-10-26 10:21 UTC (permalink / raw)
To: Michael Ellerman, linuxppc-dev; +Cc: paulus
On Thu, 2016-20-10 at 03:57:12 UTC, Michael Ellerman wrote:
> Commit 5d375199ea96 ("KVM: PPC: Book3S HV: Set server for passed-through
> interrupts") broke the SMP=n build:
>
> arch/powerpc/kvm/book3s_hv_rm_xics.c:758:2: error: implicit declaration of function 'get_hard_smp_processor_id'
>
> That is because we lost the implicit include of asm/smp.h, so include it
> explicitly to get the definition for get_hard_smp_processor_id().
>
> Fixes: 5d375199ea96 ("KVM: PPC: Book3S HV: Set server for passed-through interrupts")
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to powerpc fixes.
https://git.kernel.org/powerpc/c/62623d5f918fb1c8ed86b03b9a86cc
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-26 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 3:57 [PATCH] KVM: PPC: Book3S HV: Fix build error when SMP=n Michael Ellerman
2016-10-26 10:21 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).