[PATCH 2/3] powerpc/cpm1: Fix build with various CONFIG_*_UCODE_PATCH combinations
Kumar Gala
galak at kernel.crashing.org
Mon Jul 12 02:07:09 EST 2010
On Jul 8, 2010, at 12:16 PM, Anton Vorontsov wrote:
> Warnings are treated as errors for arch/powerpc code, so build fails
> with CONFIG_I2C_SPI_UCODE_PATCH=y:
>
> CC arch/powerpc/sysdev/micropatch.o
> cc1: warnings being treated as errors
> arch/powerpc/sysdev/micropatch.c: In function 'cpm_load_patch':
> arch/powerpc/sysdev/micropatch.c:630: warning: unused variable 'smp'
> make[1]: *** [arch/powerpc/sysdev/micropatch.o] Error 1
>
> And with CONFIG_USB_SOF_UCODE_PATCH=y:
>
> CC arch/powerpc/sysdev/micropatch.o
> cc1: warnings being treated as errors
> arch/powerpc/sysdev/micropatch.c: In function 'cpm_load_patch':
> arch/powerpc/sysdev/micropatch.c:629: warning: unused variable 'spp'
> arch/powerpc/sysdev/micropatch.c:628: warning: unused variable 'iip'
> make[1]: *** [arch/powerpc/sysdev/micropatch.o] Error 1
>
> This patch fixes these issues by introducing proper #ifdefs.
>
> Cc: <stable at kernel.org> [ .33, .34 ]
> Signed-off-by: Anton Vorontsov <avorontsov at mvista.com>
> ---
> arch/powerpc/sysdev/micropatch.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
applied to merge
- k
More information about the Linuxppc-dev
mailing list