Skip to content

Commit

Permalink
davinci: make arch_idle and arch_reset as inline functions
Browse files Browse the repository at this point in the history
Make arch_idle and arch_reset inline as inline function.

Not having them inline leads to a warning of this sort when only
one of these functions is used:

arch/arm/mach-davinci/include/mach/system.h:24: warning: 'arch_reset' \
defined but not used

boot, re-boot tested on OMAP-L138 EVM

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Sekhar Nori authored and Kevin Hilman committed Aug 26, 2009
1 parent baf09a4 commit 6077d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-davinci/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

extern void davinci_watchdog_reset(void);

static void arch_idle(void)
static inline void arch_idle(void)
{
cpu_do_idle();
}

static void arch_reset(char mode, const char *cmd)
static inline void arch_reset(char mode, const char *cmd)
{
davinci_watchdog_reset();
}
Expand Down

0 comments on commit 6077d26

Please sign in to comment.