From patchwork Fri Jun 19 13:16:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 31340 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5JDGuc5018583 for ; Fri, 19 Jun 2009 13:16:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756446AbZFSNQv (ORCPT ); Fri, 19 Jun 2009 09:16:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755399AbZFSNQu (ORCPT ); Fri, 19 Jun 2009 09:16:50 -0400 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:18257 "EHLO TX2EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753596AbZFSNQs (ORCPT ); Fri, 19 Jun 2009 09:16:48 -0400 Received: from mail162-tx2-R.bigfish.com (10.9.14.245) by TX2EHSOBE004.bigfish.com (10.9.40.24) with Microsoft SMTP Server id 8.1.340.0; Fri, 19 Jun 2009 13:16:50 +0000 Received: from mail162-tx2 (localhost.localdomain [127.0.0.1]) by mail162-tx2-R.bigfish.com (Postfix) with ESMTP id 79EBB137828B; Fri, 19 Jun 2009 13:16:50 +0000 (UTC) X-SpamScore: 5 X-BigFish: VPS5(zba6lzzz1202hzzz32i17ch65h) X-Spam-TCS-SCL: 4:0 Received: by mail162-tx2 (MessageSwitch) id 1245417409178376_25367; Fri, 19 Jun 2009 13:16:49 +0000 (UCT) Received: from ausb3extmailp02.amd.com (ausb3extmailp02.amd.com [163.181.251.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail162-tx2.bigfish.com (Postfix) with ESMTP id D8D33A78062; Fri, 19 Jun 2009 13:16:48 +0000 (UTC) Received: from ausb3twp01.amd.com (ausb3twp01.amd.com [163.181.250.37]) by ausb3extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n5JDGiR5020017; Fri, 19 Jun 2009 08:16:47 -0500 X-WSS-ID: 0KLHM7P-01-2NA-01 Received: from sausexbh1.amd.com (sausexbh1.amd.com [163.181.22.101]) by ausb3twp01.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 29F8E1943D5; Fri, 19 Jun 2009 08:16:36 -0500 (CDT) Received: from sausexmb5.amd.com ([163.181.49.129]) by sausexbh1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Jun 2009 08:16:43 -0500 Received: from SDRSEXMB1.amd.com ([172.20.3.116]) by sausexmb5.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Jun 2009 08:16:42 -0500 Received: from seurexmb1.amd.com ([165.204.9.130]) by SDRSEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Jun 2009 15:16:39 +0200 Received: from lemmy.amd.com ([165.204.15.93]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Jun 2009 15:16:38 +0200 Received: by lemmy.amd.com (Postfix, from userid 41430) id 3F386C9A30; Fri, 19 Jun 2009 15:16:38 +0200 (CEST) From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH 1/8] hugetlbfs: export vma_kernel_pagsize to modules Date: Fri, 19 Jun 2009 15:16:22 +0200 Message-ID: <1245417389-5527-2-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.6.3.1 In-Reply-To: <1245417389-5527-1-git-send-email-joerg.roedel@amd.com> References: <1245417389-5527-1-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 19 Jun 2009 13:16:38.0443 (UTC) FILETIME=[2D8E97B0:01C9F0E0] MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This function is required by KVM. Signed-off-by: Joerg Roedel --- mm/hugetlb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e83ad2c..e2016ef 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -234,6 +234,7 @@ unsigned long vma_kernel_pagesize(struct vm_area_struct *vma) return 1UL << (hstate->order + PAGE_SHIFT); } +EXPORT_SYMBOL_GPL(vma_kernel_pagesize); /* * Return the page size being used by the MMU to back a VMA. In the majority