From patchwork Wed May 16 09:17:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mackerras X-Patchwork-Id: 159552 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 0526BB6FA0 for ; Wed, 16 May 2012 19:18:22 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759851Ab2EPJRo (ORCPT ); Wed, 16 May 2012 05:17:44 -0400 Received: from ozlabs.org ([203.10.76.45]:59509 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758740Ab2EPJRn (ORCPT ); Wed, 16 May 2012 05:17:43 -0400 Received: by ozlabs.org (Postfix, from userid 1003) id 3D7B3B6FC4; Wed, 16 May 2012 19:17:42 +1000 (EST) Date: Wed, 16 May 2012 19:17:05 +1000 From: Paul Mackerras To: Alexander Graf Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] KVM: PPC: Book3S HV: Export kvm_hpt_order Message-ID: <20120516091705.GB30694@bloggs.ozlabs.ibm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org Code in book3s_64_mmu_hv.c, which is in the modular part of HV KVM, needs to access kvm_hpt_order, which is defined in the built-in part. Therefore we need to export it. Signed-off-by: Paul Mackerras --- Alex, it's up to you whether you apply this on your kvm-ppc-next branch or fold it into the "Make the guest hash table size configurable" commit - either is fine with me. arch/powerpc/kvm/book3s_hv_builtin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c index 6d5ec64..ec0a9e5 100644 --- a/arch/powerpc/kvm/book3s_hv_builtin.c +++ b/arch/powerpc/kvm/book3s_hv_builtin.c @@ -26,6 +26,7 @@ static struct kvmppc_linear_info *kvm_alloc_linear(int type); static void kvm_release_linear(struct kvmppc_linear_info *ri); int kvm_hpt_order = KVM_DEFAULT_HPT_ORDER; +EXPORT_SYMBOL_GPL(kvm_hpt_order); /*************** RMA *************/