Thread (8 messages) 8 messages, 3 authors, 2012-11-29
STALE4965d REVIEWED: 1 (0M)
Revisions (8)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v2 [diff vs current]
  7. v2 current
  8. v2 [diff vs current]

[PATCH V2 3/4] ARM: AM335x: Fix warning in timer.c

From: Santosh Shilimkar <hidden>
Date: 2012-11-29 05:15:58
Also in: linux-omap

On Thursday 29 November 2012 03:34 AM, Jon Hunter wrote:
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 <redacted>

Signed-off-by: Jon Hunter <redacted>
---
Acked-by: Santosh Shilimkar <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help