From patchwork Thu Jan 15 13:47:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mark McLoughlin X-Patchwork-Id: 2479 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 n0FDhcjH020368 for ; Thu, 15 Jan 2009 05:43:39 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759774AbZAONrq (ORCPT ); Thu, 15 Jan 2009 08:47:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760930AbZAONrq (ORCPT ); Thu, 15 Jan 2009 08:47:46 -0500 Received: from mail16.svc.cra.dublin.eircom.net ([159.134.118.215]:36073 "HELO mail16.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757070AbZAONrp (ORCPT ); Thu, 15 Jan 2009 08:47:45 -0500 Received: (qmail 55619 messnum 3307593 invoked from network[83.71.77.218/83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net]); 15 Jan 2009 13:47:43 -0000 Received: from 83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net (HELO blaa.localdomain) (83.71.77.218) by mail16.svc.cra.dublin.eircom.net (qp 55619) with SMTP; 15 Jan 2009 13:47:43 -0000 Received: by blaa.localdomain (Postfix, from userid 500) id A2D982E4122; Thu, 15 Jan 2009 13:47:42 +0000 (GMT) From: Mark McLoughlin To: avi@redhat.com Cc: kvm@vger.kernel.org, Mark McLoughlin Subject: [PATCH 02/18] kvm: qemu: make qemu_alloc_physram() and alloc_mem_area() static Date: Thu, 15 Jan 2009 13:47:26 +0000 Message-Id: <1232027262-21487-2-git-send-email-markmc@redhat.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1232027262-21487-1-git-send-email-markmc@redhat.com> References: <1232027262-21487-1-git-send-email-markmc@redhat.com> MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Fixes: qemu/vl.c:4667: warning: no previous prototype for ‘alloc_mem_area’ qemu/vl.c:4710: warning: no previous prototype for ‘qemu_alloc_physram’ Signed-off-by: Mark McLoughlin --- qemu/vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/vl.c b/qemu/vl.c index 7a36870..f2fe708 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4664,7 +4664,7 @@ static int gethugepagesize(void) return hugepagesize; } -void *alloc_mem_area(size_t memory, unsigned long *len, const char *path) +static void *alloc_mem_area(size_t memory, unsigned long *len, const char *path) { char *filename; void *area; @@ -4707,7 +4707,7 @@ void *alloc_mem_area(size_t memory, unsigned long *len, const char *path) return area; } -void *qemu_alloc_physram(unsigned long memory) +static void *qemu_alloc_physram(unsigned long memory) { void *area = NULL; unsigned long map_len = memory;