linux/arch/arm/mach-omap2
Jon Hunter e0c3e27ce1 ARM: AM335x: Fix warning in timer.c
When compiling the kernel with configuration options ...

 # CONFIG_ARCH_OMAP2 is not set
 # CONFIG_ARCH_OMAP3 is not set
 # CONFIG_ARCH_OMAP4 is not set
 # CONFIG_SOC_OMAP5 is not set
 CONFIG_SOC_AM33XX=y

 ... the following build warning is seen.

  CC      arch/arm/mach-omap2/timer.o
  arch/arm/mach-omap2/timer.c:395:19: warning: ‘omap2_sync32k_clocksource_init’
  	defined but not used [-Wunused-function]

This issue was introduced by commit 6f80b3b (ARM: OMAP2+: timer: remove
CONFIG_OMAP_32K_TIMER) where the omap2_sync32k_clocksource_init() is no
longer referenced by the timer initialisation function for the AM335x
device as it has no 32k-sync timer.

Fix this by adding the "__maybe_unused" compiler directive to the
omap2_sync32k_clocksource_init() function to indicate that this function
may be used for certain configurations.

Cc: Igor Grinberg <grinberg@compulab.co.il>

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
2012-12-14 10:14:50 -06:00
..
2012-09-20 15:02:23 -07:00
2012-12-12 11:45:16 -08:00
2012-12-12 11:45:16 -08:00
2012-12-12 11:45:16 -08:00
2012-03-28 20:59:45 -07:00
2012-09-20 15:02:22 -07:00
2012-09-20 15:03:59 -07:00
2012-09-20 15:04:00 -07:00
2012-09-20 15:04:01 -07:00
2012-09-20 15:04:03 -07:00
2012-10-01 18:19:05 -07:00
2012-12-12 11:45:16 -08:00
2012-10-18 16:23:20 -07:00
2012-12-14 10:14:50 -06:00
2012-10-09 07:07:14 +09:00
2012-11-05 15:08:23 -08:00
2012-09-12 02:57:10 -06:00