OSDN Git Service

ARM: mvebu: mark mvebu_hwcc_pci_nb as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Feb 2016 14:06:39 +0000 (15:06 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 25 Feb 2016 14:39:20 +0000 (15:39 +0100)
commit60f23952317a34e8d41c22a6058dcb7bdaf91b96
tree9ae8b0715e7ff739cba35a88f4b32925844fddf6
parentd3201ede944a15eca0f13d2d49b322974f623a4a
ARM: mvebu: mark mvebu_hwcc_pci_nb as __maybe_unused

The coherency notifier block is only used when CONFIG_PCI
is enabled, otherwise we get a warning:

arch/arm/mach-mvebu/coherency.c:110:30: warning: 'mvebu_hwcc_pci_nb' defined but not used [-Wunused-variable]

There is no nice way to use an if(IS_ENABLED()) check here to
let the compiler know that it might be used, so let's mark
the structure as __maybe_unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/mach-mvebu/coherency.c