* [PATCH] fix platforms without suspend
@ 2002-05-29 11:41 Paul Mackerras
2002-05-31 10:47 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Paul Mackerras @ 2002-05-29 11:41 UTC (permalink / raw)
To: torvalds, linux-kernel
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.
diff -urN linux-2.5/include/linux/suspend.h pmac-2.5/include/linux/suspend.h
--- linux-2.5/include/linux/suspend.h Thu May 23 12:02:19 2002
+++ pmac-2.5/include/linux/suspend.h Sat May 25 10:54:02 2002
@@ -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 */
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] fix platforms without suspend
2002-05-29 11:41 [PATCH] fix platforms without suspend Paul Mackerras
@ 2002-05-31 10:47 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2002-05-31 10:47 UTC (permalink / raw)
To: Paul Mackerras; +Cc: torvalds, linux-kernel
Hi!
> 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
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-31 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-29 11:41 [PATCH] fix platforms without suspend Paul Mackerras
2002-05-31 10:47 ` Pavel Machek
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®