Commit 736f9323 authored by Ingo Molnar's avatar Ingo Molnar

bzip2/lzma: make flush_buffer() unconditional

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: default avatarIngo Molnar <mingo@elte.hu>
parent b1730424
...@@ -390,7 +390,6 @@ static int __init write_buffer(char *buf, unsigned len) ...@@ -390,7 +390,6 @@ static int __init write_buffer(char *buf, unsigned len)
return len - count; 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) static int __init flush_buffer(void *bufv, unsigned len)
{ {
char *buf = (char *) bufv; char *buf = (char *) bufv;
...@@ -413,7 +412,6 @@ static int __init flush_buffer(void *bufv, unsigned len) ...@@ -413,7 +412,6 @@ static int __init flush_buffer(void *bufv, unsigned len)
} }
return origLen; return origLen;
} }
#endif
static unsigned my_inptr; /* index of next byte to be processed in inbuf */ static unsigned my_inptr; /* index of next byte to be processed in inbuf */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment