提交 81d67439 编写于 作者: L Lasse Collin 提交者: Linus Torvalds

XZ: Fix missing <linux/kernel.h> include

<linux/kernel.h> is needed for min_t. The old version
happened to work on x86 because <asm/unaligned.h>
indirectly includes <linux/kernel.h>, but it didn't
work on ARM.

<linux/kernel.h> includes <asm/byteorder.h> so it's
not necessary to include it explicitly anymore.
Signed-off-by: NLasse Collin <lasse.collin@tukaani.org>
Cc: stable <stable@kernel.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 21c7075f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
# include <linux/xz.h> # include <linux/xz.h>
# include <asm/byteorder.h> # include <linux/kernel.h>
# include <asm/unaligned.h> # include <asm/unaligned.h>
/* XZ_PREBOOT may be defined only via decompress_unxz.c. */ /* XZ_PREBOOT may be defined only via decompress_unxz.c. */
# ifndef XZ_PREBOOT # ifndef XZ_PREBOOT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册