* [PATCH] msm: uncompress.h: Fix putc unused warning
@ 2011-03-18 21:38 Stephen Boyd
0 siblings, 0 replies; only message in thread
From: Stephen Boyd @ 2011-03-18 21:38 UTC (permalink / raw)
To: linux-arm-kernel
arch/arm/mach-msm/include/mach/uncompress.h:22:
warning: 'putc' defined but not used
When DEBUG_ICEDCC=y putc is redefined to icedcc_putc(). This
leaves the putc implemtation in uncompress.h as unused,
triggering this warning. Fix it by not compiling putc() when
DEBUG_ICEDCC=y.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
arch/arm/mach-msm/include/mach/uncompress.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-msm/include/mach/uncompress.h b/arch/arm/mach-msm/include/mach/uncompress.h
index d94292c..47a5579 100644
--- a/arch/arm/mach-msm/include/mach/uncompress.h
+++ b/arch/arm/mach-msm/include/mach/uncompress.h
@@ -19,6 +19,7 @@
#include "linux/io.h"
#include "mach/msm_iomap.h"
+#ifndef CONFIG_DEBUG_ICEDCC
static void putc(int c)
{
#if defined(MSM_DEBUG_UART_PHYS)
@@ -27,6 +28,7 @@ static void putc(int c)
writel(c, base + 0x0c);
#endif
}
+#endif
static inline void flush(void)
{
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-18 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 21:38 [PATCH] msm: uncompress.h: Fix putc unused warning Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).