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] gcc4 array type has incomplete element type

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] gcc4 array type has incomplete element type
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Thu, 3 Mar 2005 13:49:58 -0500 (EST)
Delivery-date: Thu, 03 Mar 2005 18:52:31 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Kill another gcc4 error, you have to declare tss_struct before
being able to make an array off tss_structs.  Moving the array
extern declaration down a few lines fixes this problem.

xen-unstable/xen/include/asm/processor.h:177: error: array type has incomplete 
element type

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- xen-unstable/xen/include/asm-x86/processor.h.gcc4   2005-03-03 
13:44:27.000000000 -0500
+++ xen-unstable/xen/include/asm-x86/processor.h        2005-03-03 
13:46:13.000000000 -0500
@@ -174,7 +174,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[];
@@ -383,6 +382,8 @@
 extern idt_entry_t idt_table[];
 extern idt_entry_t *idt_tables[];
 
+extern struct tss_struct init_tss[NR_CPUS];
+
 #ifdef ARCH_HAS_FAST_TRAP
 
 #define SET_DEFAULT_FAST_TRAP(_p) \


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] gcc4 array type has incomplete element type, Rik van Riel <=