Skip to contentSkip to conversation

init-kconfig-fix-option-to-disable-kernel-compression.patch removed from -mm tree

obsolete [email protected] 1 participant 1 message Nov 18, 2013 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

Subject: [obsolete] init-kconfig-fix-option-to-disable-kernel-compression.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 18 Nov 2013 11:52:46 -0800

The patch titled
Subject: init/Kconfig: fix option to disable kernel compression
has been removed from the -mm tree. Its filename was
init-kconfig-fix-option-to-disable-kernel-compression.patch

This patch was dropped because it is obsolete

------------------------------------------------------
From: Christian Ruppert <[email protected]>
Subject: init/Kconfig: fix option to disable kernel compression

Some architectures with self-decompressing kernel images did not compile with commit 69f0554ec261fd68 ("init/Kconfig: add option to disable kernel compression") because they don't provide a non-decompression mechanism for uncompressed kernels.

Rectify this problem by allowing uncompressed kernels only for architectures which explicitly state they support them.

---

 arch/arc/Kconfig |    2 ++
 init/Kconfig     |    5 +++++
 2 files changed, 7 insertions(+)
arch/arc/Kconfig renamed from arch/arc/Kconfig~init-kconfig-fix-option-to-disable-kernel-compression +2 -0
diff -puN arch/arc/Kconfig~init-kconfig-fix-option-to-disable-kernel-compression arch/arc/Kconfig
@@ -21,6 +21,8 @@ config ARC
 	select HAVE_ARCH_KGDB
 	select HAVE_ARCH_TRACEHOOK
 	select HAVE_IOREMAP_PROT
+	select HAVE_KERNEL_UNCOMPRESSED
+	select HAVE_KERNEL_GZIP
 	select HAVE_KPROBES
 	select HAVE_KRETPROBES
 	select HAVE_MEMBLOCK
init/Kconfig renamed from init/Kconfig~init-kconfig-fix-option-to-disable-kernel-compression +5 -0
diff -puN init/Kconfig~init-kconfig-fix-option-to-disable-kernel-compression init/Kconfig
@@ -97,6 +97,9 @@ config LOCALVERSION_AUTO
 
 	  which is done within the script "scripts/setlocalversion".)
 
+config HAVE_KERNEL_UNCOMPRESSED
+        bool
+
 config HAVE_KERNEL_GZIP
 	bool
 
@@ -118,6 +121,7 @@ config HAVE_KERNEL_LZ4
 choice
 	prompt "Kernel compression mode"
 	default KERNEL_GZIP
+	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
 	help
 	  The linux kernel is a kind of self-extracting executable.
 	  Several compression algorithms are available, which differ
@@ -138,6 +142,7 @@ choice
 
 config KERNEL_UNCOMPRESSED
 	bool "No compression"
+	depends on HAVE_KERNEL_UNCOMPRESSED
 	help
 	  No compression at all. The kernel is huge but the compression and
 	  decompression times are zero.

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch