All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: David Brown <davidb@codeaurora.org>, Daniel Walker <dwalker@fifo99.com>
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH] msm: uncompress.h: Fix putc unused warning
Date: Fri, 18 Mar 2011 14:38:26 -0700	[thread overview]
Message-ID: <1300484306-4480-1-git-send-email-sboyd@codeaurora.org> (raw)

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.

WARNING: multiple messages have this Message-ID (diff)
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] msm: uncompress.h: Fix putc unused warning
Date: Fri, 18 Mar 2011 14:38:26 -0700	[thread overview]
Message-ID: <1300484306-4480-1-git-send-email-sboyd@codeaurora.org> (raw)

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.

             reply	other threads:[~2011-03-18 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 21:38 Stephen Boyd [this message]
2011-03-18 21:38 ` [PATCH] msm: uncompress.h: Fix putc unused warning Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1300484306-4480-1-git-send-email-sboyd@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=davidb@codeaurora.org \
    --cc=dwalker@fifo99.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.