ARM: at91: avoid defining CONFIG_* symbols in source code
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Feb 2016 14:39:38 +0000 (15:39 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 2 Mar 2016 16:31:08 +0000 (17:31 +0100)
commite91fb3bd757569aca48785358a4adbf41334d382
tree1cd0278d9bcda3a31495d530bbf3e4e394f679d0
parent1c277cae146b7c3aec0c6ee26dcc4086601a5bca
ARM: at91: avoid defining CONFIG_* symbols in source code

In an invalid randconfig build (fixed by another patch),
I ran across this warning:

arch/arm/include/debug/at91.S:18:0: error: "CONFIG_DEBUG_UART_VIRT" redefined [-Werror]
 #define CONFIG_DEBUG_UART_VIRT AT91_IO_P2V(CONFIG_DEBUG_UART_PHYS)

As Russell pointed out, we should never #define a macro starting
with CONFIG_ in a source file, as that is rather confusing.

This renames the macro to avoid the symbol clash.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Russell King <linux@arm.linux.org.uk>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/include/debug/at91.S