mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [PATCH] fix platforms without suspend
Date: Wed, 29 May 2002 21:41:36 +1000 (EST)	[thread overview]
Message-ID: <15604.48752.953866.585175@argo.ozlabs.ibm.com> (raw)

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 */

             reply	other threads:[~2002-05-29 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29 11:41 Paul Mackerras [this message]
2002-05-31 10:47 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15604.48752.953866.585175@argo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®