]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: pxa: work around duplicate definition of GPIO24_SSP1_SFRM
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Apr 2012 13:34:49 +0000 (13:34 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 4 Oct 2012 08:20:23 +0000 (10:20 +0200)
commit9a60758353e3058c29741fa4d2c3a386d5d5b2a8
tree120d2952f8d447f9e681fa4de18d31b9b41f12f4
parent09107d8c73634d44af69f03d3b766aec0e6c474d
ARM: pxa: work around duplicate definition of GPIO24_SSP1_SFRM

The symbol "GPIO24_SSP1_SFRM" is defined in both mfp-pxa27x.h and
mfp-pxa25x.h. Since the macro is not actually used in the cm-x2xx.c
file, but it includes both headers, a safe workaround should be
to just undefine it from the .c file. This is a bit hacky and
the headers should be fixed to not both define it, but for now
it gets us around an annoying warning.

Without this patch, building cm_x2xx_defconfig results in:

In file included from arch/arm/mach-pxa/include/mach-pxa/pxa27x.h:7:0,
                 from arch/arm/mach-pxa/cm-x2xx.c:25:
arch/arm/mach-pxa/include/mach-pxa/mfp-pxa27x.h:215:0: warning: "GPIO24_SSP1_SFRM" redefined [enabled by default]
arch/arm/mach-pxa/include/mach-pxa/mfp-pxa25x.h:111:0: note: this is the location of the previous definition

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Mike Rapoport <mike@compulab.co.il>
arch/arm/mach-pxa/cm-x2xx.c