WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 28 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 28 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:47 +0200
Delivery-date: Thu, 19 May 2011 12:33:23 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832206; l=936; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=goaSO/8jU04HAe3H4raFKn/3sFk=; b=pCn2UDoO2eBlrAxQl4xAdHuMAUxApdHGMRLXEQD32pfMT4HjUeqTbgLmYj0eJevNo2W zjBNUfycUNeh98F876V9tV7vKHJYHY0mKm5Nr7LtYiogNFnRunxFrHHKtqvOzw7GqEk4q IYj+aC+EA/Xky+az95oFeLsj35BOXMyhRpk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824414 -7200
# Node ID c8e4a190705be60bae9cff30c90a8a4a307979ec
# Parent  90160f32dbae6535e54e72375b004c0113ed1f62
gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c

amd.c: In function 'init_amd':
amd.c:332:6: error: variable 'r' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 90160f32dbae -r c8e4a190705b xen/arch/x86/cpu/amd.c
--- a/xen/arch/x86/cpu/amd.c    Thu May 19 19:00:12 2011 +0200
+++ b/xen/arch/x86/cpu/amd.c    Thu May 19 19:00:14 2011 +0200
@@ -329,7 +329,6 @@ static void check_syscfg_dram_mod_en(voi
 static void __devinit init_amd(struct cpuinfo_x86 *c)
 {
        u32 l, h;
-       int r;
 
 #ifdef CONFIG_SMP
        unsigned long long value;
@@ -375,8 +374,6 @@ static void __devinit init_amd(struct cp
        }
 #endif
 
-       r = get_model_name(c);
-
        switch(c->x86)
        {
        case 6: /* An Athlon/Duron */

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>