Skip to content

Commit

Permalink
bzip2/lzma: make flush_buffer() unconditional
Browse files Browse the repository at this point in the history
Impact: build fix

flush_buffer() is used unconditionally:

  init/initramfs.c:456: error: 'flush_buffer' undeclared (first use in this function)
  init/initramfs.c:456: error: (Each undeclared identifier is reported only once
  init/initramfs.c:456: error: for each function it appears in.)

So remove the decompressor #ifdefs from around it.

Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed Jan 10, 2009
1 parent b173042 commit 736f932
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ static int __init write_buffer(char *buf, unsigned len)
return len - count;
}

#if defined CONFIG_RD_GZIP || defined CONFIG_RD_BZIP2 || defined CONFIG_RD_LZMA
static int __init flush_buffer(void *bufv, unsigned len)
{
char *buf = (char *) bufv;
Expand All @@ -413,7 +412,6 @@ static int __init flush_buffer(void *bufv, unsigned len)
}
return origLen;
}
#endif

static unsigned my_inptr; /* index of next byte to be processed in inbuf */

Expand Down

0 comments on commit 736f932

Please sign in to comment.