From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: [PATCH] KVM: PPC: Book3S: Fix compile error in XICS emulation Date: Sat, 13 Jul 2013 22:22:18 +1000 Message-ID: <20130713122218.GC3183@iris.ozlabs.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: Alexander Graf Return-path: Content-Disposition: inline Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Commit 8e44ddc3f3 ("powerpc/kvm/book3s: Add support for H_IPOLL and H_XIRR_X in XICS emulation") added a call to get_tb() but didn't include the header that defines it, and on some configs this means book3s_xics.c fails to compile: arch/powerpc/kvm/book3s_xics.c: In function =E2=80=98kvmppc_xics_hcall=E2= =80=99: arch/powerpc/kvm/book3s_xics.c:812:3: error: implicit declaration of fu= nction =E2=80=98get_tb=E2=80=99 [-Werror=3Dimplicit-function-declaratio= n] Cc: stable@vger.kernel.org [v3.10] Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_xics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_xics.c b/arch/powerpc/kvm/book3s_x= ics.c index 94c1dd4..a3a5cb8 100644 --- a/arch/powerpc/kvm/book3s_xics.c +++ b/arch/powerpc/kvm/book3s_xics.c @@ -19,6 +19,7 @@ #include #include #include +#include =20 #include #include --=20 1.8.3.1