Message ID | 1247151398-8672-1-git-send-email-nsekhar@ti.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Sekhar Nori <nsekhar@ti.com> writes: > 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> boot, reboot tested on dm6446, dm355 and dm6467 EVMs. Pushing to davinci git. Thanks, Kevin
diff --git a/arch/arm/mach-davinci/include/mach/system.h b/arch/arm/mach-davinci/include/mach/system.h index b7e7036..8e4f10f 100644 --- a/arch/arm/mach-davinci/include/mach/system.h +++ b/arch/arm/mach-davinci/include/mach/system.h @@ -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(); }
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> --- OMAP architecture defines these functions as inline as well. arch/arm/mach-davinci/include/mach/system.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)