diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-12-29 16:40:00 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-07-27 23:57:44 +0300 |
commit | c1ae3f7c4b7c4ae0c83014969c99e8108e268e16 (patch) | |
tree | 8433cc828256031b14b91ed3e83bc105b87cd430 /arch/arm/mach-prima2 | |
parent | 1f3b4d8fcc28d68bc4b01bec0b886f31c4ea3efb (diff) | |
download | linux-c1ae3f7c4b7c4ae0c83014969c99e8108e268e16.tar.xz |
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>
Diffstat (limited to 'arch/arm/mach-prima2')
-rw-r--r-- | arch/arm/mach-prima2/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c index 8cadb302a7d2..ffe05c27087e 100644 --- a/arch/arm/mach-prima2/common.c +++ b/arch/arm/mach-prima2/common.c @@ -15,7 +15,7 @@ #include <linux/of_platform.h> #include "common.h" -static void __init sirfsoc_init_late(void) +static void __init __maybe_unused sirfsoc_init_late(void) { sirfsoc_pm_init(); } |