Skip to contentSkip to conversation

x86-64: Fix compilation of 2.6.11rc3

PATCH New Andi Kleen 1 participant 1 message Feb 5, 2005 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 3174569B9743D511922F00A0C94314230808546A@TYANWEB

Andi Kleen

author
#1 lore raw

PATCH 1/1 x86-64: Fix compilation of 2.6.11rc3

[Linus, please apply before 2.6.11]

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

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'

Quoted 1 line

to an incomplete type

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

include/linux/suspend.h renamed from include/linux/suspend.h-o +1 -1
diff -u linux-2.6.11rc3/include/linux/suspend.h-o linux-2.6.11rc3/include/linux/suspend.h
@@ -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);