diff options
author | Anton Vorontsov <avorontsov@mvista.com> | 2010-07-08 21:16:14 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 10:29:50 -0700 |
commit | a0067e0cd98be2022d3ff5c41d4f5a24ff48918f (patch) | |
tree | 9c14e512386b9680b9da8fccac63ab8fe4a3b127 /mm | |
parent | dc1671aaead838d5a3ed5a69317c73e0a18c9546 (diff) | |
download | lwn-a0067e0cd98be2022d3ff5c41d4f5a24ff48918f.tar.gz lwn-a0067e0cd98be2022d3ff5c41d4f5a24ff48918f.zip |
powerpc/cpm1: Fix build with various CONFIG_*_UCODE_PATCH combinations
commit 2069a6ae19a34d96cc9cb284eb645b165138e03f upstream.
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.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions