Skip to content

Commit 736f932

Browse files
author
Ingo Molnar
committed
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>
1 parent b173042 commit 736f932

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎init/initramfs.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ static int __init write_buffer(char *buf, unsigned len)
390390
return len - count;
391391
}
392392

393-
#if defined CONFIG_RD_GZIP || defined CONFIG_RD_BZIP2 || defined CONFIG_RD_LZMA
394393
static int __init flush_buffer(void *bufv, unsigned len)
395394
{
396395
char *buf = (char *) bufv;
@@ -413,7 +412,6 @@ static int __init flush_buffer(void *bufv, unsigned len)
413412
}
414413
return origLen;
415414
}
416-
#endif
417415

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

0 commit comments

Comments
 (0)