Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1287656 > unrolled thread
| Started by | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| First post | 2015-12-09 18:00 +0100 |
| Last post | 2015-12-09 22:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] ARM: pxa: cm-x2xx: avoid duplicate macro warnings Arnd Bergmann <arnd@arndb.de> - 2015-12-09 18:00 +0100
Re: [PATCH] ARM: pxa: cm-x2xx: avoid duplicate macro warnings Robert Jarzmik <robert.jarzmik@free.fr> - 2015-12-09 22:10 +0100
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-12-09 18:00 +0100 |
| Subject | [PATCH] ARM: pxa: cm-x2xx: avoid duplicate macro warnings |
| Message-ID | <qDQfX-2uA-63@gated-at.bofh.it> |
In an old commit, we worked around the duplicate definition of
GPIO24_SSP1_SFRM in cm-x2xx.c, which includes files for both
pxa25x and pxa27x. Apparently the problem has come back and we
now have four additional duplicate symbols that cause warnings:
In file included from /git/arm-soc/arch/arm/mach-pxa/pxa27x.h:7:0,
from /git/arm-soc/arch/arm/mach-pxa/cm-x2xx.c:27:
/git/arm-soc/arch/arm/mach-pxa/mfp-pxa27x.h:21:0: warning: "GPIO86_GPIO" redefined
#define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF0)
This uses the same hack as before and undefines all symbols that
are defined more than once. Fortunately, cm-x2xx does not need
any of these.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c
index f2d801160079..7202022ee243 100644
--- a/arch/arm/mach-pxa/cm-x2xx.c
+++ b/arch/arm/mach-pxa/cm-x2xx.c
@@ -24,7 +24,16 @@
#include "pxa25x.h"
#undef GPIO24_SSP1_SFRM
+#undef GPIO86_GPIO
+#undef GPIO87_GPIO
+#undef GPIO88_GPIO
+#undef GPIO89_GPIO
#include "pxa27x.h"
+#undef GPIO24_SSP1_SFRM
+#undef GPIO86_GPIO
+#undef GPIO87_GPIO
+#undef GPIO88_GPIO
+#undef GPIO89_GPIO
#include <mach/audio.h>
#include <linux/platform_data/video-pxafb.h>
#include <mach/smemc.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Robert Jarzmik <robert.jarzmik@free.fr> |
|---|---|
| Date | 2015-12-09 22:10 +0100 |
| Message-ID | <qDU9R-5bQ-29@gated-at.bofh.it> |
| In reply to | #1287656 |
Arnd Bergmann <arnd@arndb.de> writes: > In an old commit, we worked around the duplicate definition of > GPIO24_SSP1_SFRM in cm-x2xx.c, which includes files for both > pxa25x and pxa27x. Apparently the problem has come back and we > now have four additional duplicate symbols that cause warnings: > > In file included from /git/arm-soc/arch/arm/mach-pxa/pxa27x.h:7:0, > from /git/arm-soc/arch/arm/mach-pxa/cm-x2xx.c:27: > /git/arm-soc/arch/arm/mach-pxa/mfp-pxa27x.h:21:0: warning: "GPIO86_GPIO" redefined > #define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF0) > > This uses the same hack as before and undefines all symbols that > are defined more than once. Fortunately, cm-x2xx does not need > any of these. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Digging out old patches of 2012, cool. Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> I suppose it's a necessary hack until I manage to kill the mfp interface in favor of pinctrl. Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web