lkml.org 
[lkml]   [2002]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] 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.

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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.066 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site