[PATCH] x86-64: Fix compilation of 2.6.11rc3

From: Andi Kleen
Date: Sat Feb 05 2005 - 02:42:21 EST


[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@xxxxxxx>


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);

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