1. 15 12月, 2012 3 次提交
    • V
      ARM: OMAP2+: Fix sparse warnings in timer.c · bf85f205
      Vaibhav Hiremath 提交于
      Sparse generates the following warnings when compiling mach-omap2/timer.c.
      
        CHECK   arch/arm/mach-omap2/timer.c
        arch/arm/mach-omap2/timer.c:193:13: warning: symbol 'omap_dmtimer_init'
        was not declared. Should it be static?
        arch/arm/mach-omap2/timer.c:213:12: warning: symbol
        'omap_dm_timer_get_errata' was not declared. Should it be static?
      
      Add static to function declaration to fix warnings.
      Signed-off-by: NVaibhav Hiremath <hvaibhav@ti.com>
      Signed-off-by: NJon Hunter <jon-hunter@ti.com>
      bf85f205
    • J
      ARM: AM335x: Fix warning in timer.c · e0c3e27c
      Jon Hunter 提交于
      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 6f80b3bb (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: NJon Hunter <jon-hunter@ti.com>
      e0c3e27c
    • J
      ARM: OMAP2+: Fix realtime_counter_init warning in timer.c · 34cceb74
      Jon Hunter 提交于
      In commit fa6d79d2 (ARM: OMAP: Add initialisation for the real-time
      counter), the function realtime_counter_init() was added. However, if
      the kernel configuration option CONFIG_SOC_OMAP5 is not selected then
      the following compiler warning is observed.
      
        CC      arch/arm/mach-omap2/timer.o
        arch/arm/mach-omap2/timer.c:489:20: warning: ‘realtime_counter_init’
        defined but not used [-Wunused-function]
      
      Commit fa6d79d2 also introduced the kernel configuration option
      CONFIG_SOC_HAS_REALTIME_COUNTER. If this option is not selected then the
      a stub function for realtime_counter_init() is defined.
      
      For non-OMAP5 devices, there is no realtime counter and so
      realtime_counter_init() function and stub function are not used for
      these devices. Therefore, fix this warning by only allowing the kernel
      configuration option CONFIG_SOC_HAS_REALTIME_COUNTER to be enabled for
      OMAP5 devices.
      
      Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
      Reported-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NJon Hunter <jon-hunter@ti.com>
      Acked-by Santosh Shilimkar <santosh.shilimkar@ti.com>
      34cceb74
  2. 12 12月, 2012 27 次提交
  3. 11 12月, 2012 7 次提交
  4. 07 12月, 2012 3 次提交