* [PATCH] 2.6.19-rc1: Fix build breakage with CONFIG_PPC32
@ 2006-10-13 10:19 Srinivasa Ds
2006-10-16 4:38 ` Paul Mackerras
0 siblings, 1 reply; 3+ messages in thread
From: Srinivasa Ds @ 2006-10-13 10:19 UTC (permalink / raw)
To: linux-kernel, akpm, torvalds
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
Linus
2.6.19-rc1 gives below error while compiling with CONFIG_PPC32.
===================================================================
LD fs/built-in.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0x96d4): undefined reference to `low_cpu_die'
======================================================
low_cpu_die() is defined under CONFIG_PM || CONFIG_CPU_FREQ_PMAC
options ,but while calling this function ,no care has been to taken to
check these options. So please apply this fix,which solves the problem.
Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
[-- Attachment #2: low_cpu_die.fix --]
[-- Type: text/plain, Size: 648 bytes --]
---
arch/powerpc/platforms/powermac/smp.c | 7 +++++++
1 file changed, 7 insertions(+)
Index: linux-2.6.19-rc1/arch/powerpc/platforms/powermac/smp.c
===================================================================
--- linux-2.6.19-rc1.orig/arch/powerpc/platforms/powermac/smp.c
+++ linux-2.6.19-rc1/arch/powerpc/platforms/powermac/smp.c
@@ -867,7 +867,14 @@ int smp_core99_cpu_disable(void)
return 0;
}
+#if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ_PMAC)
extern void low_cpu_die(void) __attribute__((noreturn)); /* in sleep.S */
+#else
+void low_cpu_die(void)
+{
+}
+#endif
+
static int cpu_dead[NR_CPUS];
void cpu_die(void)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.6.19-rc1: Fix build breakage with CONFIG_PPC32
2006-10-13 10:19 [PATCH] 2.6.19-rc1: Fix build breakage with CONFIG_PPC32 Srinivasa Ds
@ 2006-10-16 4:38 ` Paul Mackerras
2006-10-18 12:04 ` Srinivasa Ds
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2006-10-16 4:38 UTC (permalink / raw)
To: Srinivasa Ds; +Cc: linux-kernel, akpm, torvalds
Srinivasa Ds writes:
> arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
> (.text+0x96d4): undefined reference to `low_cpu_die'
> ======================================================
> low_cpu_die() is defined under CONFIG_PM || CONFIG_CPU_FREQ_PMAC
> options ,but while calling this function ,no care has been to taken to
> check these options. So please apply this fix,which solves the problem.
Nack. The correct fix is to adjust the ifdefs in sleep.S to make
low_cpu_die available. Otherwise it won't be possible to off-line
CPUs properly.
Paul.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.6.19-rc1: Fix build breakage with CONFIG_PPC32
2006-10-16 4:38 ` Paul Mackerras
@ 2006-10-18 12:04 ` Srinivasa Ds
0 siblings, 0 replies; 3+ messages in thread
From: Srinivasa Ds @ 2006-10-18 12:04 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linux-kernel, akpm, torvalds, Srivatsa Vaddagiri
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
Paul Mackerras wrote:
> Srinivasa Ds writes:
>
>
>> arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
>> (.text+0x96d4): undefined reference to `low_cpu_die'
>> ======================================================
>> low_cpu_die() is defined under CONFIG_PM || CONFIG_CPU_FREQ_PMAC
>> options ,but while calling this function ,no care has been to taken to
>> check these options. So please apply this fix,which solves the problem.
>>
>
> Nack. The correct fix is to adjust the ifdefs in sleep.S to make
> low_cpu_die available. Otherwise it won't be possible to off-line
> CPUs properly.
>
So resending the patch, by adjusting ifdefs in sleep.S
Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
> Paul.
>
[-- Attachment #2: low_cpu_die.fix --]
[-- Type: text/plain, Size: 718 bytes --]
---
arch/powerpc/platforms/powermac/sleep.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.19-rc2/arch/powerpc/platforms/powermac/sleep.S
===================================================================
--- linux-2.6.19-rc2.orig/arch/powerpc/platforms/powermac/sleep.S
+++ linux-2.6.19-rc2/arch/powerpc/platforms/powermac/sleep.S
@@ -45,7 +45,7 @@
.section .text
.align 5
-#if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ_PMAC)
+#if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ_PMAC) || (defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32))
/* This gets called by via-pmu.c late during the sleep process.
* The PMU was already send the sleep command and will shut us down
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-18 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-13 10:19 [PATCH] 2.6.19-rc1: Fix build breakage with CONFIG_PPC32 Srinivasa Ds
2006-10-16 4:38 ` Paul Mackerras
2006-10-18 12:04 ` Srinivasa Ds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox