From: Marcin Slusarz <marcin.slusarz@gmail.com>
To: Sven Wegener <sven.wegener@stealer.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
Glauber Costa <gcosta@redhat.com>, Pavel Machek <pavel@suse.cz>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] x86, acpi: temp_stack is used only when CONFIG_SMP is set
Date: Sun, 3 Aug 2008 19:25:48 +0200 [thread overview]
Message-ID: <20080803172535.GE5414@joi> (raw)
In-Reply-To: <alpine.LNX.1.10.0808031901120.7765@titan.stealer.net>
On Sun, Aug 03, 2008 at 07:07:30PM +0200, Sven Wegener wrote:
> On Sun, 3 Aug 2008, Marcin Slusarz wrote:
>
> > arch/x86/kernel/acpi/sleep.c:24: warning: 'temp_stack' defined but not used
> >
> > Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
> > Cc: Glauber Costa <gcosta@redhat.com>
> > Cc: Pavel Machek <pavel@suse.cz>
> > Cc: Ingo Molnar <mingo@elte.hu>
> > ---
> > arch/x86/kernel/acpi/sleep.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
> > index fa2161d..9103cb6 100644
> > --- a/arch/x86/kernel/acpi/sleep.c
> > +++ b/arch/x86/kernel/acpi/sleep.c
> > @@ -20,7 +20,7 @@ unsigned long acpi_realmode_flags;
> > /* address in low memory of the wakeup routine. */
> > static unsigned long acpi_realmode;
> >
> > -#ifdef CONFIG_64BIT
> > +#ifdef CONFIG_SMP
> > static char temp_stack[10240];
> > #endif
> >
>
> Now it still generates the warning, but on i386 with CONFIG_SMP set,
> instead of x86_64 without CONFIG_SMP. We only need temp_stack, when both
> CONFIG_64BIT and CONFIG_SMP are activated.
Yes. Thanks for looking at the patch!
---
>From c6e673acf02e8bf04866cadf17c1cb1fa4d852ea Mon Sep 17 00:00:00 2001
From: Marcin Slusarz <marcin.slusarz@gmail.com>
Subject: [PATCH] x86, acpi: temp_stack is used only when CONFIG_64BIT && CONFIG_SMP is set
arch/x86/kernel/acpi/sleep.c:24: warning: 'temp_stack' defined but not used
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Glauber Costa <gcosta@redhat.com>
Cc: Pavel Machek <pavel@suse.cz>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sven Wegener <sven.wegener@stealer.net>
---
arch/x86/kernel/acpi/sleep.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
index fa2161d..81e5ab6 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
@@ -20,7 +20,7 @@ unsigned long acpi_realmode_flags;
/* address in low memory of the wakeup routine. */
static unsigned long acpi_realmode;
-#ifdef CONFIG_64BIT
+#if defined(CONFIG_SMP) && defined(CONFIG_64BIT)
static char temp_stack[10240];
#endif
--
1.5.4.5
next prev parent reply other threads:[~2008-08-03 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 16:52 [PATCH] x86, acpi: temp_stack is used only when CONFIG_SMP is set Marcin Slusarz
2008-08-03 17:07 ` Sven Wegener
2008-08-03 17:25 ` Marcin Slusarz [this message]
2008-08-07 8:12 ` Pavel Machek
2008-08-15 12:12 ` Marcin Slusarz
2008-08-15 14:41 ` Ingo Molnar
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=20080803172535.GE5414@joi \
--to=marcin.slusarz@gmail.com \
--cc=gcosta@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pavel@suse.cz \
--cc=sven.wegener@stealer.net \
/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