From patchwork Fri Aug 10 22:21:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 176639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1D8092C00C5 for ; Sat, 11 Aug 2012 08:21:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755194Ab2HJWVb (ORCPT ); Fri, 10 Aug 2012 18:21:31 -0400 Received: from ch1ehsobe001.messaging.microsoft.com ([216.32.181.181]:4308 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755186Ab2HJWVa (ORCPT ); Fri, 10 Aug 2012 18:21:30 -0400 Received: from mail265-ch1-R.bigfish.com (10.43.68.237) by CH1EHSOBE008.bigfish.com (10.43.70.58) with Microsoft SMTP Server id 14.1.225.23; Fri, 10 Aug 2012 22:21:30 +0000 Received: from mail265-ch1 (localhost [127.0.0.1]) by mail265-ch1-R.bigfish.com (Postfix) with ESMTP id F1EEEA00129; Fri, 10 Aug 2012 22:21:29 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bh8275dhz2dh2a8h668h839h944hd25hf0ah107ah) Received: from mail265-ch1 (localhost.localdomain [127.0.0.1]) by mail265-ch1 (MessageSwitch) id 13446372898678_22372; Fri, 10 Aug 2012 22:21:29 +0000 (UTC) Received: from CH1EHSMHS010.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.238]) by mail265-ch1.bigfish.com (Postfix) with ESMTP id F34B41280044; Fri, 10 Aug 2012 22:21:28 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS010.bigfish.com (10.43.70.10) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 10 Aug 2012 22:21:28 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.298.5; Fri, 10 Aug 2012 17:21:27 -0500 Received: from tyr.buserror.net ([10.214.80.31]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id q7AMLL0l031362; Fri, 10 Aug 2012 15:21:22 -0700 Date: Fri, 10 Aug 2012 17:21:21 -0500 From: Scott Wood To: CC: , , , Geert Uytterhoeven , Michael Ellerman Subject: [PATCH] powerpc/epapr: export epapr_hypercall_start Message-ID: <20120810222121.GA9408@tyr.buserror.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: freescale.com Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org This fixes breakage introduced by the following commit: commit 6d2d82627f4f1e96a33664ace494fa363e0495cb Author: Liu Yu-B13201 Date: Tue Jul 3 05:48:56 2012 +0000 PPC: Don't use hardcoded opcode for ePAPR hcall invocation when a driver that uses ePAPR hypercalls is built as a module. Reported-by: Geert Uytterhoeven Signed-off-by: Scott Wood --- Sending to Alex even though this isn't KVM-specific since the commit it fixes is still only in his tree (and linux-next). arch/powerpc/kernel/ppc_ksyms.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 3e40315..e597dde 100644 --- a/arch/powerpc/kernel/ppc_ksyms.c +++ b/arch/powerpc/kernel/ppc_ksyms.c @@ -43,6 +43,7 @@ #include #include #include +#include #ifdef CONFIG_PPC32 extern void transfer_to_handler(void); @@ -192,3 +193,7 @@ EXPORT_SYMBOL(__arch_hweight64); #ifdef CONFIG_PPC_BOOK3S_64 EXPORT_SYMBOL_GPL(mmu_psize_defs); #endif + +#ifdef CONFIG_EPAPR_PARAVIRT +EXPORT_SYMBOL(epapr_hypercall_start); +#endif