x86-64: Fix compilation of 2.6.11rc3
diff mbox series

Message ID 20050205073833.GB58749@muc.de
State New, archived
Headers show
Series
  • x86-64: Fix compilation of 2.6.11rc3
Related show

Commit Message

Andi Kleen Feb. 5, 2005, 7:38 a.m. UTC
[Linus, please apply before 2.6.11]

> > >   CC      arch/x86_64/kernel/asm-offsets.s
> > > arch/x86_64/kernel/asm-offsets.c: In function `main':
> > > arch/x86_64/kernel/asm-offsets.c:65: error: invalid 
> > application of `sizeof'
> > > to an incomplete type


This patch fixes a compile problem on x86-64 when CONFIG_PM 
is turned off. 

Signed-off-by: Andi Kleen <ak@suse.de>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Patch
diff mbox series

diff -u linux-2.6.11rc3/include/linux/suspend.h-o linux-2.6.11rc3/include/linux/suspend.h
--- linux-2.6.11rc3/include/linux/suspend.h-o	2005-02-04 09:13:32.000000000 +0100
+++ linux-2.6.11rc3/include/linux/suspend.h	2005-02-05 08:25:13.000000000 +0100
@@ -10,7 +10,6 @@ 
 #include <linux/init.h>
 #include <linux/pm.h>
 
-#ifdef CONFIG_PM
 /* page backup entry */
 typedef struct pbe {
 	unsigned long address;		/* address of the copy */
@@ -33,6 +32,7 @@ 
 extern void drain_local_pages(void);
 extern void mark_free_pages(struct zone *zone);
 
+#ifdef CONFIG_PM
 /* kernel/power/swsusp.c */
 extern int software_suspend(void);