mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86-64: Fix compilation of 2.6.11rc3
       [not found] <3174569B9743D511922F00A0C94314230808546A@TYANWEB>
@ 2005-02-05  7:38 ` Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2005-02-05  7:38 UTC (permalink / raw)
  To: YhLu, torvalds; +Cc: linux-kernel, discuss

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


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-05  7:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3174569B9743D511922F00A0C94314230808546A@TYANWEB>
2005-02-05  7:38 ` [PATCH] x86-64: Fix compilation of 2.6.11rc3 Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®