mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
To: akpm@linux-foundation.org
Cc: hpa@zytor.com, mingo@elte.hu, phillip@lougher.demon.co.uk,
	rmk@arm.linux.org.uk, sam@ravnborg.org, tglx@linutronix.de,
	linux-kernel@vger.kernel.org,
	Albin Tonnerre <albin.tonnerre@free-electrons.com>
Subject: [PATCH v2 1/5] include/linux/unaligned/{l,b}e_byteshift.h: Fix usage for compressed kernels
Date: Sat,  5 Sep 2009 19:19:02 +0200	[thread overview]
Message-ID: <1252171146-13805-2-git-send-email-albin.tonnerre@free-electrons.com> (raw)
In-Reply-To: <1252171146-13805-1-git-send-email-albin.tonnerre@free-electrons.com>

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: Albin Tonnerre <albin.tonnerre@free-electrons.com>
---
 include/linux/unaligned/be_byteshift.h |    2 +-
 include/linux/unaligned/le_byteshift.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/unaligned/be_byteshift.h b/include/linux/unaligned/be_byteshift.h
index 46dd12c..9356b24 100644
--- a/include/linux/unaligned/be_byteshift.h
+++ b/include/linux/unaligned/be_byteshift.h
@@ -1,7 +1,7 @@
 #ifndef _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)
 {
diff --git a/include/linux/unaligned/le_byteshift.h b/include/linux/unaligned/le_byteshift.h
index 59777e9..be376fb 100644
--- a/include/linux/unaligned/le_byteshift.h
+++ b/include/linux/unaligned/le_byteshift.h
@@ -1,7 +1,7 @@
 #ifndef _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)
 {
-- 
1.6.3.3


  reply	other threads:[~2009-09-05 17:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-05 17:19 [PATCH] Add support for LZO-compressed kernels Albin Tonnerre
2009-09-05 17:19 ` Albin Tonnerre [this message]
2009-09-05 17:19   ` [PATCH v2 2/5] " Albin Tonnerre
2009-09-05 17:19     ` [PATCH v2 3/5] Add support for LZO-compressed kernels for ARM Albin Tonnerre
2009-09-05 17:19       ` [PATCH v2 4/5] Add support for LZO-compressed kernels on x86 Albin Tonnerre
2009-09-05 17:19         ` [PATCH v2 5/5] Add LZO compression support for initramfs and old-style initrd Albin Tonnerre
2009-10-11  9:54     ` [PATCH v2.1 2/5] Add support for LZO-compressed kernels Albin Tonnerre
2009-09-05 17:21 ` [PATCH] " Albin Tonnerre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1252171146-13805-2-git-send-email-albin.tonnerre@free-electrons.com \
    --to=albin.tonnerre@free-electrons.com \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=phillip@lougher.demon.co.uk \
    --cc=rmk@arm.linux.org.uk \
    --cc=sam@ravnborg.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®