diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-21 07:43:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-21 07:43:55 +0100 |
commit | d35796c3b19c66baa5c44d00e5d7b9bc035429ea (patch) | |
tree | 1899648b84c9976cd078eb756425ae222305d57b /include/linux | |
parent | 3a89aeefe8ed94fa0150505156a66c9e8cbc83b4 (diff) | |
parent | 4a5018d7378e72e8f0226bef24e9d87f1850ee75 (diff) | |
download | barebox-d35796c3b19c66baa5c44d00e5d7b9bc035429ea.tar.gz barebox-d35796c3b19c66baa5c44d00e5d7b9bc035429ea.tar.xz |
Merge branch 'for-next/zstd'
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/decompress/unlz4.h | 8 | ||||
-rw-r--r-- | include/linux/decompress/unzstd.h | 11 | ||||
-rw-r--r-- | include/linux/xz.h | 8 |
3 files changed, 19 insertions, 8 deletions
diff --git a/include/linux/decompress/unlz4.h b/include/linux/decompress/unlz4.h index 0ad189d2d9..fb6d499d1b 100644 --- a/include/linux/decompress/unlz4.h +++ b/include/linux/decompress/unlz4.h @@ -3,10 +3,10 @@ #ifndef DECOMPRESS_UNLZ4_H #define DECOMPRESS_UNLZ4_H -int decompress_unlz4(unsigned char *inbuf, int len, - int(*fill)(void*, unsigned int), - int(*flush)(void*, unsigned int), +int decompress_unlz4(unsigned char *inbuf, long len, + long(*fill)(void*, unsigned long), + long(*flush)(void*, unsigned long), unsigned char *output, - int *pos, + long *pos, void(*error)(char *x)); #endif diff --git a/include/linux/decompress/unzstd.h b/include/linux/decompress/unzstd.h new file mode 100644 index 0000000000..56d539ae88 --- /dev/null +++ b/include/linux/decompress/unzstd.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef LINUX_DECOMPRESS_UNZSTD_H +#define LINUX_DECOMPRESS_UNZSTD_H + +int unzstd(unsigned char *inbuf, long len, + long (*fill)(void*, unsigned long), + long (*flush)(void*, unsigned long), + unsigned char *output, + long *pos, + void (*error_fn)(char *x)); +#endif diff --git a/include/linux/xz.h b/include/linux/xz.h index 77e80ce4b1..6480877f86 100644 --- a/include/linux/xz.h +++ b/include/linux/xz.h @@ -264,10 +264,10 @@ XZ_EXTERN void xz_crc32_init(void); XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc); #endif -STATIC int decompress_unxz(unsigned char *in, int in_size, - int (*fill)(void *dest, unsigned int size), - int (*flush)(void *src, unsigned int size), - unsigned char *out, int *in_used, +STATIC int decompress_unxz(unsigned char *in, long in_size, + long (*fill)(void *dest, unsigned long size), + long (*flush)(void *src, unsigned long size), + unsigned char *out, long *in_used, void (*error)(char *x)); #endif |