diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-10 12:06:19 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-10 12:06:19 +0100 |
commit | 736f93236ce786d1bcf09ad4dcb38a360d35ea1b (patch) | |
tree | 9d400ee537c86df5b8fbd890d0942e550305bf03 /init/initramfs.c | |
parent | Merge branch 'linus' into x86/setup-lzma (diff) | |
download | linux-736f93236ce786d1bcf09ad4dcb38a360d35ea1b.tar.xz linux-736f93236ce786d1bcf09ad4dcb38a360d35ea1b.zip |
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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init/initramfs.c')
-rw-r--r-- | init/initramfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index f8241e832aa3..76f4a0125338 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -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; @@ -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 */ |