summaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed/decompress.c
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2010-12-25 23:11:49 +0800
committerRalf Baechle <ralf@linux-mips.org>2015-04-02 13:54:25 +0200
commit7ae7ef3ffdd62454a1c0e6b69ebc7a14b523f0cc (patch)
tree288abc6246a15dc556e8d1dafb0d46e3144461cc /arch/mips/boot/compressed/decompress.c
parent160f14312b0b7d35759535b1f60be79247b263c4 (diff)
downloadop-kernel-dev-7ae7ef3ffdd62454a1c0e6b69ebc7a14b523f0cc.zip
op-kernel-dev-7ae7ef3ffdd62454a1c0e6b69ebc7a14b523f0cc.tar.gz
MIPS: Reduce kernel image size for !CONFIG_DEBUG_ZBOOT
!CONFIG_DEBUG_ZBOOT doesn't need puts() and puthex(), remove them and the corrospindig strings for !CONFIG_DEBUG_ZBOOT, as a result, it saves about 1280 bytes. [ralf@linux-mips.org: Resolved reject.] Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: Wu Zhangjin <wuzhangjin@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/1898/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot/compressed/decompress.c')
-rw-r--r--arch/mips/boot/compressed/decompress.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/boot/compressed/decompress.c b/arch/mips/boot/compressed/decompress.c
index 31903cf..5483106 100644
--- a/arch/mips/boot/compressed/decompress.c
+++ b/arch/mips/boot/compressed/decompress.c
@@ -28,8 +28,13 @@ unsigned long free_mem_end_ptr;
extern unsigned char __image_begin, __image_end;
/* debug interfaces */
+#ifdef CONFIG_DEBUG_ZBOOT
extern void puts(const char *s);
extern void puthex(unsigned long long val);
+#else
+#define puts(s) do {} while (0)
+#define puthex(val) do {} while (0)
+#endif
void error(char *x)
{
OpenPOWER on IntegriCloud