Skip to content

Commit 363ceb7

Browse files
committed
Merge branch '5.5/zen-sauce' into 5.5/master
2 parents 25fee8c + 048cfcc commit 363ceb7

14 files changed

Lines changed: 5 additions & 238 deletions

File tree

arch/x86/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ config X86
180180
select HAVE_KERNEL_LZMA
181181
select HAVE_KERNEL_LZO
182182
select HAVE_KERNEL_XZ
183-
select HAVE_KERNEL_ZSTD
184183
select HAVE_KPROBES
185184
select HAVE_KPROBES_ON_FTRACE
186185
select HAVE_FUNCTION_ERROR_INJECTION

arch/x86/boot/compressed/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ OBJECT_FILES_NON_STANDARD := y
2424
KCOV_INSTRUMENT := n
2525

2626
targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \
27-
vmlinux.bin.xz vmlinux.bin.lzo vmlinux.bin.lz4 vmlinux.bin.zst
27+
vmlinux.bin.xz vmlinux.bin.lzo vmlinux.bin.lz4
2828

2929
KBUILD_CFLAGS := -m$(BITS) -O2
3030
KBUILD_CFLAGS += -fno-strict-aliasing $(call cc-option, -fPIE, -fPIC)
@@ -145,16 +145,13 @@ $(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y) FORCE
145145
$(call if_changed,lzo)
146146
$(obj)/vmlinux.bin.lz4: $(vmlinux.bin.all-y) FORCE
147147
$(call if_changed,lz4)
148-
$(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
149-
$(call if_changed,zstd)
150148

151149
suffix-$(CONFIG_KERNEL_GZIP) := gz
152150
suffix-$(CONFIG_KERNEL_BZIP2) := bz2
153151
suffix-$(CONFIG_KERNEL_LZMA) := lzma
154152
suffix-$(CONFIG_KERNEL_XZ) := xz
155153
suffix-$(CONFIG_KERNEL_LZO) := lzo
156154
suffix-$(CONFIG_KERNEL_LZ4) := lz4
157-
suffix-$(CONFIG_KERNEL_ZSTD) := zst
158155

159156
quiet_cmd_mkpiggy = MKPIGGY $@
160157
cmd_mkpiggy = $(obj)/mkpiggy $< > $@

arch/x86/boot/compressed/misc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ static int lines, cols;
7777
#ifdef CONFIG_KERNEL_LZ4
7878
#include "../../../../lib/decompress_unlz4.c"
7979
#endif
80-
81-
#ifdef CONFIG_KERNEL_ZSTD
82-
#include "../../../../lib/decompress_unzstd.c"
83-
#endif
8480
/*
8581
* NOTE: When adding a new decompressor, please update the analysis in
8682
* ../header.S.

arch/x86/include/asm/boot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# error "Invalid value for CONFIG_PHYSICAL_ALIGN"
2525
#endif
2626

27-
#if CONFIG_KERNEL_BZIP2 || CONFIG_KERNEL_ZSTD
27+
#ifdef CONFIG_KERNEL_BZIP2
2828
# define BOOT_HEAP_SIZE 0x400000
29-
#else /* !(CONFIG_KERNEL_BZIP2 || CONFIG_KERNEL_ZSTD) */
29+
#else /* !CONFIG_KERNEL_BZIP2 */
3030
# define BOOT_HEAP_SIZE 0x10000
3131
#endif
3232

include/linux/decompress/unzstd.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

init/Kconfig

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,13 @@ config HAVE_KERNEL_LZO
220220
config HAVE_KERNEL_LZ4
221221
bool
222222

223-
config HAVE_KERNEL_ZSTD
224-
bool
225-
226223
config HAVE_KERNEL_UNCOMPRESSED
227224
bool
228225

229226
choice
230227
prompt "Kernel compression mode"
231228
default KERNEL_GZIP
232-
depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_ZSTD || HAVE_KERNEL_UNCOMPRESSED
229+
depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
233230
help
234231
The linux kernel is a kind of self-extracting executable.
235232
Several compression algorithms are available, which differ
@@ -308,16 +305,6 @@ config KERNEL_LZ4
308305
is about 8% bigger than LZO. But the decompression speed is
309306
faster than LZO.
310307

311-
config KERNEL_ZSTD
312-
bool "ZSTD"
313-
depends on HAVE_KERNEL_ZSTD
314-
help
315-
Its compression ratio is roughly 10% worst than xz, but the
316-
decompression is 10x faster. Currently, this is one of the optimal
317-
algorithms available in the kernel, as there isn't an algorithm,
318-
which would provide a better compression ratio and a shorter
319-
decompression time.
320-
321308
config KERNEL_UNCOMPRESSED
322309
bool "None"
323310
depends on HAVE_KERNEL_UNCOMPRESSED

lib/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,6 @@ config DECOMPRESS_LZ4
329329
select LZ4_DECOMPRESS
330330
tristate
331331

332-
config DECOMPRESS_ZSTD
333-
select ZSTD_DECOMPRESS
334-
tristate
335-
336332
#
337333
# Generic allocator support is selected if needed
338334
#

lib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ lib-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o
158158
lib-$(CONFIG_DECOMPRESS_XZ) += decompress_unxz.o
159159
lib-$(CONFIG_DECOMPRESS_LZO) += decompress_unlzo.o
160160
lib-$(CONFIG_DECOMPRESS_LZ4) += decompress_unlz4.o
161-
lib-$(CONFIG_DECOMPRESS_ZSTD) += decompress_unzstd.o
162161

163162
obj-$(CONFIG_TEXTSEARCH) += textsearch.o
164163
obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o

lib/decompress.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/decompress/inflate.h>
1414
#include <linux/decompress/unlzo.h>
1515
#include <linux/decompress/unlz4.h>
16-
#include <linux/decompress/unzstd.h>
1716

1817
#include <linux/types.h>
1918
#include <linux/string.h>
@@ -38,9 +37,6 @@
3837
#ifndef CONFIG_DECOMPRESS_LZ4
3938
# define unlz4 NULL
4039
#endif
41-
#ifndef CONFIG_DECOMPRESS_ZSTD
42-
# define unzstd NULL
43-
#endif
4440

4541
struct compress_format {
4642
unsigned char magic[2];
@@ -56,7 +52,6 @@ static const struct compress_format compressed_formats[] __initconst = {
5652
{ {0xfd, 0x37}, "xz", unxz },
5753
{ {0x89, 0x4c}, "lzo", unlzo },
5854
{ {0x02, 0x21}, "lz4", unlz4 },
59-
{ {0x28, 0xb5}, "zstd", unzstd },
6055
{ {0, 0}, NULL, NULL }
6156
};
6257

lib/decompress_unzstd.c

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)