From: Andi Kleen <ak@muc.de>
To: YhLu <YhLu@tyan.com>, torvalds@osdl.org
Cc: linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: [PATCH] x86-64: Fix compilation of 2.6.11rc3
Date: 5 Feb 2005 08:38:33 +0100
Date: Sat, 5 Feb 2005 08:38:33 +0100 [thread overview]
Message-ID: <20050205073833.GB58749@muc.de> (raw)
In-Reply-To: <3174569B9743D511922F00A0C94314230808546A@TYANWEB>
[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);
parent reply other threads:[~2005-02-05 7:39 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <3174569B9743D511922F00A0C94314230808546A@TYANWEB>]
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=20050205073833.GB58749@muc.de \
--to=ak@muc.de \
--cc=YhLu@tyan.com \
--cc=discuss@x86-64.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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;
as well as URLs for NNTP newsgroup(s).