diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-07-24 12:54:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-24 13:00:08 -0400 |
commit | 81d67439855a7f928d90965d832aa4f2fb677342 (patch) | |
tree | 56bd690fe13c7d8e97d15284eb896c5952dd8113 /lib | |
parent | 21c7075fa5a756f1c95f6b463ff42cd320cc0301 (diff) |
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: Lasse Collin <lasse.collin@tukaani.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xz/xz_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xz/xz_private.h b/lib/xz/xz_private.h index a65633e06962..482b90f363fe 100644 --- a/lib/xz/xz_private.h +++ b/lib/xz/xz_private.h | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #ifdef __KERNEL__ | 13 | #ifdef __KERNEL__ |
14 | # include <linux/xz.h> | 14 | # include <linux/xz.h> |
15 | # include <asm/byteorder.h> | 15 | # include <linux/kernel.h> |
16 | # include <asm/unaligned.h> | 16 | # include <asm/unaligned.h> |
17 | /* XZ_PREBOOT may be defined only via decompress_unxz.c. */ | 17 | /* XZ_PREBOOT may be defined only via decompress_unxz.c. */ |
18 | # ifndef XZ_PREBOOT | 18 | # ifndef XZ_PREBOOT |