[lkml]   [2011]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] msm: uncompress.h: Fix putc unused warning
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

Signed-off-by: Stephen Boyd <>
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"

static void putc(int c)
#if defined(MSM_DEBUG_UART_PHYS)
@@ -27,6 +28,7 @@ static void putc(int c)
writel(c, base + 0x0c);

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.

 \ /
  Last update: 2011-03-18 22:41    [W:0.020 / U:4.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site