Skip to contentSkip to conversation

fix platforms without suspend

PATCH In review Paul Mackerras 2 participants 2 messages May 29, 2002 – May 31, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix platforms without suspend

At the moment, any architecture that doesn't have <asm/suspend.h> won't compile. The patch below changes <linux/suspend.h> so it only looks for <asm/suspend.h> if CONFIG_SOFTWARE_SUSPEND is set.

Linus, it would be good if you would apply this to your tree so that architectures other than i386 will compile.

Thanks,
Paul.

include/linux/suspend.h +4 -3
diff -urN linux-2.5/include/linux/suspend.h pmac-2.5/include/linux/suspend.h
@@ -1,17 +1,18 @@
 #ifndef _LINUX_SWSUSP_H
 #define _LINUX_SWSUSP_H
 
-#include <asm/suspend.h>
+#include <linux/config.h>
 #include <linux/swap.h>
 #include <linux/notifier.h>
-#include <linux/config.h>
+
+#ifdef CONFIG_SOFTWARE_SUSPEND
+#include <asm/suspend.h>
 
 extern unsigned char software_suspend_enabled;
 
 #define NORESUME	 1
 #define RESUME_SPECIFIED 2
 
-#ifdef CONFIG_SOFTWARE_SUSPEND
 /* page backup entry */
 typedef struct pbe {
 	unsigned long address;		/* address of the copy */
#1 lore raw

Hi!

Quoted 6 lines

At the moment, any architecture that doesn't have <asm/suspend.h> won't compile. The patch below changes <linux/suspend.h> so it only looks for <asm/suspend.h> if CONFIG_SOFTWARE_SUSPEND is set.

Linus, it would be good if you would apply this to your tree so that architectures other than i386 will compile.

This is wrong, because suspend-to-RAM also needs asm/suspend.h, and already fixed the right way in the main tree.
Pavel

Signature · 2 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.