From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH] kvm-userspace: Fix a compiler warning Date: Wed, 10 Dec 2008 22:41:50 +0100 Message-ID: <4940379E.9000109@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from outbound-wa4.frontbridge.com ([216.32.181.16]:10191 "EHLO WA4EHSOBE006.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755160AbYLJVmM (ORCPT ); Wed, 10 Dec 2008 16:42:12 -0500 Sender: kvm-owner@vger.kernel.org List-ID: The following small patch fixes a compiler warning in KVM's vl.c Signed-off-by: Andre Przywara --- diff --git a/qemu/vl.c b/qemu/vl.c index 7b58605..b489acd 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4611,7 +4611,7 @@ static int gethugepagesize(void) { int ret, fd; char buf[4096]; - char *needle = "Hugepagesize:"; + const char *needle = "Hugepagesize:"; char *size; unsigned long hugepagesize; -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG, Wilschdorfer Landstr. 101, 01109 Dresden, Germany Register Court Dresden: HRA 4896, General Partner authorized to represent: AMD Saxony LLC (Wilmington, Delaware, US) General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy