Commit cb340f3a authored by Albin Tonnerre's avatar Albin Tonnerre Committed by James Toy

When unaligned accesses are required for uncompressing a kernel (such as

for LZO decompression on ARM in a patch that follows), including
<linux/kernel.h> causes issues as it brings in a lot of things that are
not available in the decompression environment.

However, those files apparently use nothing from <linux/kernel.h>, all
they need is the declaration of types such as u32 or u64, so
<linux/types.h> should be enough
Signed-off-by: default avatarAlbin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 3e03e61b
#ifndef _LINUX_UNALIGNED_BE_BYTESHIFT_H #ifndef _LINUX_UNALIGNED_BE_BYTESHIFT_H
#define _LINUX_UNALIGNED_BE_BYTESHIFT_H #define _LINUX_UNALIGNED_BE_BYTESHIFT_H
#include <linux/kernel.h> #include <linux/types.h>
static inline u16 __get_unaligned_be16(const u8 *p) static inline u16 __get_unaligned_be16(const u8 *p)
{ {
......
#ifndef _LINUX_UNALIGNED_LE_BYTESHIFT_H #ifndef _LINUX_UNALIGNED_LE_BYTESHIFT_H
#define _LINUX_UNALIGNED_LE_BYTESHIFT_H #define _LINUX_UNALIGNED_LE_BYTESHIFT_H
#include <linux/kernel.h> #include <linux/types.h>
static inline u16 __get_unaligned_le16(const u8 *p) static inline u16 __get_unaligned_le16(const u8 *p)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment