diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-12-09 14:43:45 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-15 23:50:13 +0100 |
commit | ee5d874271f2b6a6ff1046aa7a8e41e4d53888d4 (patch) | |
tree | b6193207b2c34aed6b3f196edba2808fbd941feb /drivers/clk | |
parent | f41bd6afb78e024880ba84a642a75b2a2e108304 (diff) | |
download | linux-ee5d874271f2b6a6ff1046aa7a8e41e4d53888d4.tar.gz linux-ee5d874271f2b6a6ff1046aa7a8e41e4d53888d4.tar.bz2 linux-ee5d874271f2b6a6ff1046aa7a8e41e4d53888d4.zip |
ARM: pxa: mark ezx structures as __maybe_unused
The ezx platform contains multiple machine descriptors, but not all
of them use all of the data structures, and it's possible to disable
all of the machines, which produces some harmless warnings:
mach-pxa/ezx.c:53:26: warning: 'ezx_pwm_lookup' defined but not used [-Wunused-variable]
mach-pxa/ezx.c:86:31: warning: 'ezx_fb_info_1' defined but not used [-Wunused-variable]
mach-pxa/ezx.c:107:31: warning: 'ezx_fb_info_2' defined but not used [-Wunused-variable]
mach-pxa/ezx.c:113:32: warning: 'ezx_devices' defined but not used [-Wunused-variable]
mach-pxa/ezx.c:117:22: warning: 'ezx_pin_config' defined but not used [-Wunused-variable]
This marks all those structures as __maybe_unused to avoid the warnings.
Obviously a configuration that contains the ezx platform but no specific
model is a bit silly, but it should not cause compile-time warnings.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions