From: Tim Moreton Subject: [patch] gcc4 fix for xen/include/asm-x86/processor.h Date: Thu, 14 Jul 2005 11:55:13 +0100 Message-ID: <42D64491.5080808@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I haven't kept up to date with whether patches for gcc4 compliance are applied to 2.0-testing, but when I was trying to compile it on FC4, one that seems to have slipped the net was given by Rik van Riel back in March: http://lists.xensource.com/archives/html/xen-devel/2005-03/msg00180.html The patch no longer applies cleanly, but the one below does, if it helps. Tim Signed-off-by: Tim Moreton tim.moreton@cl.cam.ac.uk --- a/xen/include/asm-x86/processor.h Fri Jul 8 16:36:26 2005 +++ b/xen/include/asm-x86/processor.h Wed Jul 13 19:30:01 2005 @@ -172,7 +172,6 @@ */ extern struct cpuinfo_x86 boot_cpu_data; -extern struct tss_struct init_tss[NR_CPUS]; #ifdef CONFIG_SMP extern struct cpuinfo_x86 cpu_data[]; @@ -435,6 +434,8 @@ extern struct desc_struct idt_table[]; extern struct desc_struct *idt_tables[]; +extern struct tss_struct init_tss[NR_CPUS]; + #if defined(__i386__) #define SET_DEFAULT_FAST_TRAP(_p) \