Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/kvm: Fix SMP=n build error in book3s_xics.c

Commit 34cb7954c0aa "Convert ICS mutex lock to spin lock" added an
include of asm/spinlock.h, which does not work in the SMP=n case.

It should instead include linux/spinlock.h

Fixes: 34cb7954c0aa ("KVM: PPC: Book3S HV: Convert ICS mutex lock to spin lock")
Acked-by: Paul Mackerras <paulus@samba.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

+1 -1
+1 -1
arch/powerpc/kvm/book3s_xics.c
··· 12 12 #include <linux/err.h> 13 13 #include <linux/gfp.h> 14 14 #include <linux/anon_inodes.h> 15 + #include <linux/spinlock.h> 15 16 16 17 #include <asm/uaccess.h> 17 18 #include <asm/kvm_book3s.h> ··· 21 20 #include <asm/xics.h> 22 21 #include <asm/debug.h> 23 22 #include <asm/time.h> 24 - #include <asm/spinlock.h> 25 23 26 24 #include <linux/debugfs.h> 27 25 #include <linux/seq_file.h>