Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494Ab2BPLZj (ORCPT ); Thu, 16 Feb 2012 06:25:39 -0500 Received: from mail.free-electrons.com ([88.190.12.23]:40890 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941Ab2BPLZi (ORCPT ); Thu, 16 Feb 2012 06:25:38 -0500 From: Michael Opdenacker To: linux@arm.linux.org.uk, nicolas.pitre@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Opdenacker Subject: [PATCH] ARM: boot/compressed/decompress.c cleanup Date: Thu, 16 Feb 2012 12:25:15 +0100 Message-Id: <1329391515-20492-1-git-send-email-michael.opdenacker@free-electrons.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1823 Lines: 59 - Remove unused declarations and includes - Remove the Trace and Assert functions which aren't used in decompression routines. Signed-off-by: Michael Opdenacker --- arch/arm/boot/compressed/decompress.c | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-) diff --git a/arch/arm/boot/compressed/decompress.c b/arch/arm/boot/compressed/decompress.c index 07be5a2..ce0ceb1 100644 --- a/arch/arm/boot/compressed/decompress.c +++ b/arch/arm/boot/compressed/decompress.c @@ -1,37 +1,16 @@ -#define _LINUX_STRING_H_ - #include /* for inline */ #include /* for size_t */ #include /* for NULL */ -#include #include extern unsigned long free_mem_ptr; extern unsigned long free_mem_end_ptr; -extern void error(char *); #define STATIC static #define STATIC_RW_DATA /* non-static please */ #define ARCH_HAS_DECOMP_WDOG -/* Diagnostic functions */ -#ifdef DEBUG -# define Assert(cond,msg) {if(!(cond)) error(msg);} -# define Trace(x) fprintf x -# define Tracev(x) {if (verbose) fprintf x ;} -# define Tracevv(x) {if (verbose>1) fprintf x ;} -# define Tracec(c,x) {if (verbose && (c)) fprintf x ;} -# define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;} -#else -# define Assert(cond,msg) -# define Trace(x) -# define Tracev(x) -# define Tracevv(x) -# define Tracec(c,x) -# define Tracecv(c,x) -#endif - #ifdef CONFIG_KERNEL_GZIP #include "../../../../lib/decompress_inflate.c" #endif -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/