Powerpc compile error with 2.6.39-rc3 and non-SMP configs
Hi,
Commit b987812b3fc "powerpc/kexec: Fix mismatched ifdefs for PPC64/SMP." breaks compilation on non SMP powerpc machines.
I wonder if this commit is really neccessary in the first place. The function definition itself is already between an
#ifdef CONFIG_SMP (line 56)
#endif
block so only exists if SMP=y and PPC_STD_MMU_64=y. Furthermore the stub in your patch is only created if SMP=y and PPC_STD_MMU_64=n which breaks non-SMP configs.
Kind regards,
Michael Guntsche
Quoted 4 lines · Michael Guntsche
Hi,
Commit
b987812b3fc"powerpc/kexec: Fix mismatched ifdefs for PPC64/SMP." breaks compilation on non SMP powerpc machines.
Ah crap. I compile tested on SMP, so didn't see that.
Quoted 2 lines
I wonder if this commit is really neccessary in the first place. The function definition itself is already between an
Your analysis is right, but I think getting rid of the #ifdefs is still the right approach where possible. I'll send a fix shortly.
Thanks for the report.
P.
Quoted 10 lines
#ifdef
CONFIG_SMP(line 56)
#endifblock so only exists if SMP=y and PPC_STD_MMU_64=y. Furthermore the stub in your patch is only created if SMP=y and PPC_STD_MMU_64=n which breaks non-SMP configs.
Kind regards,
Michael Guntsche