x86-64: Fix compilation of 2.6.11rc3
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 3174569B9743D511922F00A0C94314230808546A@TYANWEB
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.sarch/x86_64/kernel/asm-offsets.c: In function `main':arch/x86_64/kernel/asm-offsets.c:65: error: invalidapplication of `sizeof'
Quoted 1 line
to an incomplete type
This patch fixes a compile problem on x86-64 when CONFIG_PM is turned off.
Signed-off-by Andi Kleen <[email protected]>
include/linux/suspend.h renamed from include/linux/suspend.h-o +1 -1
@@ -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 );