]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sirf: mark sirfsoc_init_late as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 Dec 2015 13:40:00 +0000 (14:40 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 20:57:44 +0000 (22:57 +0200)
commit6a156f0355ce699e9d9874210f61da34ca02b7ba
tree8433cc828256031b14b91ed3e83bc105b87cd430
parent482be78eb852919e9fffe160b1121ffcfa156bcb
ARM: sirf: mark sirfsoc_init_late as __maybe_unused

sirfsoc_init_late is called by each of the three individual
SoC definitions, but in a randconfig build, we can encounter
a situation where they are all disabled:

arch/arm/mach-prima2/common.c:18:123: warning: 'sirfsoc_init_late' defined but not used [-Wunused-function]

While that is not a useful configuration, the warning also
doesn't help, so this patch marks the function as __maybe_unused
to let the compiler know it is there intentionally.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-prima2/common.c