Re: [PATCH 1/1] powerpc: Fix initramfs size in PPC32 build

From: Geert Uytterhoeven
Date: Sun Oct 31 2010 - 06:15:00 EST


On Fri, 22 Oct 2010, Kerstin Jonsson wrote:
> commit ffe8018c3424892c9590048fc36caa6c3e0c8a76 of the -mm tree
> fixes the initramfs size calculation for e.g. s390 but breaks it
> for 32bit architectures which do not define CONFIG_32BIT.
>
> This patch fix the problem for PPC32 which will elsewise end up
> with a __initramfs_size of 0.
>
> Signed-off-by: Kerstin Jonsson <kerstin.jonsson@xxxxxxxxxxxx>
> Cc: Paul Mackerras <paulus@xxxxxxxxx>
> ---
> arch/powerpc/Kconfig | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 50cc5d9..d536fe4 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -4,6 +4,10 @@ config PPC32
> bool
> default y if !PPC64
>
> +config 32BIT
> + bool
> + default y if PPC32
> +
> config 64BIT
> bool
> default y if PPC64
> --
> 1.7.1

Thanks for the hint!

In the future, please CC linux-arch, or at least lkml, for things like this,
as it broke allmost all 32-bit arches.
Only mips, s390, and score set CONFIG_32BIT for 32-bit builds.
Would have saved me a bisection on m68k...

I came up with the alternative patch below to fix it in a single place.
---