Release 4.18 arch/arm/boot/compressed/decompress.c
// SPDX-License-Identifier: GPL-2.0
#define _LINUX_STRING_H_
#include <linux/compiler.h> /* for inline */
#include <linux/types.h> /* for size_t */
#include <linux/stddef.h> /* for NULL */
#include <linux/linkage.h>
#include <asm/string.h>
#include "misc.h"
#define STATIC static
#define STATIC_RW_DATA
/* non-static please */
/* Diagnostic functions */
#ifdef DEBUG
# define Assert(cond,msg) {if(!(cond)) error(msg);}
# define Trace(x) fprintf x
# define Tracev(x) {if (verbose) fprintf x ;}
# define Tracevv(x) {if (verbose>1) fprintf x ;}
# define Tracec(c,x) {if (verbose && (c)) fprintf x ;}
# define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;}
#else
# define Assert(cond,msg)
# define Trace(x)
# define Tracev(x)
# define Tracevv(x)
# define Tracec(c,x)
# define Tracecv(c,x)
#endif
/* Not needed, but used in some headers pulled in by decompressors */
extern char * strstr(const char * s1, const char *s2);
extern size_t strlen(const char *s);
extern int memcmp(const void *cs, const void *ct, size_t count);
#ifdef CONFIG_KERNEL_GZIP
#include "../../../../lib/decompress_inflate.c"
#endif
#ifdef CONFIG_KERNEL_LZO
#include "../../../../lib/decompress_unlzo.c"
#endif
#ifdef CONFIG_KERNEL_LZMA
#include "../../../../lib/decompress_unlzma.c"
#endif
#ifdef CONFIG_KERNEL_XZ
#define memmove memmove
#define memcpy memcpy
#include "../../../../lib/decompress_unxz.c"
#endif
#ifdef CONFIG_KERNEL_LZ4
#include "../../../../lib/decompress_unlz4.c"
#endif
int do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x))
{
return __decompress(input, len, NULL, NULL, output, 0, NULL, error);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 41 | 87.23% | 1 | 33.33% |
Yinghai Lu | 3 | 6.38% | 1 | 33.33% |
Nico Pitre | 3 | 6.38% | 1 | 33.33% |
Total | 47 | 100.00% | 3 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 187 | 69.00% | 3 | 25.00% |
Matthew Wilcox | 18 | 6.64% | 1 | 8.33% |
Rob Herring | 17 | 6.27% | 1 | 8.33% |
Imre Kaloz | 16 | 5.90% | 1 | 8.33% |
Arnd Bergmann | 10 | 3.69% | 1 | 8.33% |
Kyungsik Lee | 8 | 2.95% | 1 | 8.33% |
Albin Tonnerre | 8 | 2.95% | 1 | 8.33% |
Nico Pitre | 3 | 1.11% | 1 | 8.33% |
Yinghai Lu | 3 | 1.11% | 1 | 8.33% |
Greg Kroah-Hartman | 1 | 0.37% | 1 | 8.33% |
Total | 271 | 100.00% | 12 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.