From 0ac288b8ea51fb639ab0f591f30f7e3729bfab03 Mon Sep 17 00:00:00 2001 From: Jesper Nilsson Date: Fri, 30 Nov 2007 17:16:09 +0100 Subject: [PATCH] --- yaml --- r: 84940 b: refs/heads/master c: a5d204bf368ed9f326d0ce46b47523a786203acb h: refs/heads/master v: v3 --- [refs] | 2 +- .../arch/cris/arch-v32/boot/compressed/misc.c | 72 ++++++++++++++----- 2 files changed, 54 insertions(+), 20 deletions(-) diff --git a/[refs] b/[refs] index 1d4535cda980..2227f8fd4340 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 247c3c959f5d5a7edd1d5561ffe29906129dab0b +refs/heads/master: a5d204bf368ed9f326d0ce46b47523a786203acb diff --git a/trunk/arch/cris/arch-v32/boot/compressed/misc.c b/trunk/arch/cris/arch-v32/boot/compressed/misc.c index 0169ba1ca9c9..55b2695c5d70 100644 --- a/trunk/arch/cris/arch-v32/boot/compressed/misc.c +++ b/trunk/arch/cris/arch-v32/boot/compressed/misc.c @@ -1,8 +1,6 @@ /* * misc.c * - * $Id: misc.c,v 1.8 2005/04/24 18:34:29 starvik Exp $ - * * This is a collection of several routines from gzip-1.0.3 * adapted for Linux. * @@ -22,9 +20,13 @@ #include -#include -#include -#include +#include +#include +#include +#include +#ifdef CONFIG_CRIS_MACH_ARTPEC3 +#include +#endif /* * gzip declarations @@ -85,7 +87,6 @@ static unsigned outcnt = 0; /* bytes in output buffer */ # define Tracecv(c,x) #endif -static int fill_inbuf(void); static void flush_window(void); static void error(char *m); static void gzip_mark(void **); @@ -186,6 +187,8 @@ memset(void* s, int c, size_t n) char *ss = (char*)s; for (i=0;i