* [PATCH] powerpc: Define 'crash_kexec_wait_realmode' for Non-SMP systems.
@ 2011-04-14 22:27 Shaun Ruffell
2011-04-14 23:59 ` Paul Gortmaker
0 siblings, 1 reply; 3+ messages in thread
From: Shaun Ruffell @ 2011-04-14 22:27 UTC (permalink / raw)
To: Paul Gortmaker, Benjamin Herrenschmidt; +Cc: linuxppc-dev, linux-kernel
This fixes a regression from b987812b3fcaf70fdf0037589e5d2f5f2453e6ce
"powerpc/kexec: Fix mismatched ifdefs for PPC64/SMP" which resulted in
arch/powerpc/kernel/crash.c: In function =E2=80=98default_machine_crash_s=
hutdown=E2=80=99:
arch/powerpc/kernel/crash.c:349: error: implicit declaration of functio=
n
=E2=80=98crash_kexec_wait_realmode=E2=80=99
message on when compiling on Blue&White G3 and CONFIG_SMP is not defined.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
---
arch/powerpc/kernel/crash.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
index 3d3d416..5e6e37f 100644
--- a/arch/powerpc/kernel/crash.c
+++ b/arch/powerpc/kernel/crash.c
@@ -255,6 +255,9 @@ void crash_kexec_secondary(struct pt_regs *regs)
{
cpus_in_sr =3D CPU_MASK_NONE;
}
+
+static inline void crash_kexec_wait_realmode(int cpu) {}
+
#endif
=20
/*
--=20
1.7.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: Define 'crash_kexec_wait_realmode' for Non-SMP systems.
2011-04-14 22:27 [PATCH] powerpc: Define 'crash_kexec_wait_realmode' for Non-SMP systems Shaun Ruffell
@ 2011-04-14 23:59 ` Paul Gortmaker
2011-04-15 3:45 ` Shaun Ruffell
0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2011-04-14 23:59 UTC (permalink / raw)
To: Shaun Ruffell; +Cc: linuxppc-dev, linux-kernel
On 11-04-14 06:27 PM, Shaun Ruffell wrote:
> This fixes a regression from b987812b3fcaf70fdf0037589e5d2f5f2453e6ce
A fix was already sent yesterday:
http://lists.ozlabs.org/pipermail/linuxppc-dev/2011-April/089559.html
which relocates the stub function to where it needs to be. Your fix
below would end up making duplicate stub functions.
Thanks,
Paul.
> "powerpc/kexec: Fix mismatched ifdefs for PPC64/SMP" which resulted in
>
> arch/powerpc/kernel/crash.c: In function ‘default_machine_crash_shutdown’:
> arch/powerpc/kernel/crash.c:349: error: implicit declaration of function
> ‘crash_kexec_wait_realmode’
>
> message on when compiling on Blue&White G3 and CONFIG_SMP is not defined.
>
> Signed-off-by: Shaun Ruffell <sruffell@digium.com>
> ---
> arch/powerpc/kernel/crash.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
> index 3d3d416..5e6e37f 100644
> --- a/arch/powerpc/kernel/crash.c
> +++ b/arch/powerpc/kernel/crash.c
> @@ -255,6 +255,9 @@ void crash_kexec_secondary(struct pt_regs *regs)
> {
> cpus_in_sr = CPU_MASK_NONE;
> }
> +
> +static inline void crash_kexec_wait_realmode(int cpu) {}
> +
> #endif
>
> /*
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-15 3:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-14 22:27 [PATCH] powerpc: Define 'crash_kexec_wait_realmode' for Non-SMP systems Shaun Ruffell
2011-04-14 23:59 ` Paul Gortmaker
2011-04-15 3:45 ` Shaun Ruffell
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).