Contributors: 13
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Linus Torvalds (pre-git) |
104 |
34.10% |
4 |
18.18% |
Russell King |
46 |
15.08% |
4 |
18.18% |
Albin Tonnerre |
35 |
11.48% |
2 |
9.09% |
Arnd Bergmann |
32 |
10.49% |
3 |
13.64% |
Matthew Wilcox |
18 |
5.90% |
1 |
4.55% |
Rob Herring |
17 |
5.57% |
1 |
4.55% |
Imre Kaloz |
16 |
5.25% |
1 |
4.55% |
Sebastian Andrzej Siewior |
12 |
3.93% |
1 |
4.55% |
Rusty Russell |
10 |
3.28% |
1 |
4.55% |
Kyungsik Lee |
8 |
2.62% |
1 |
4.55% |
Yinghai Lu |
3 |
0.98% |
1 |
4.55% |
Nico Pitre |
3 |
0.98% |
1 |
4.55% |
Greg Kroah-Hartman |
1 |
0.33% |
1 |
4.55% |
Total |
305 |
|
22 |
|
// 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 strcmp(const char *cs, const char *ct);
extern int memcmp(const void *cs, const void *ct, size_t count);
extern char * strchrnul(const char *, int);
#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
/* Prevent KASAN override of string helpers in decompressor */
#undef memmove
#define memmove memmove
#undef memcpy
#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);
}