linux-mips
[Top] [All Lists]

[PATCH v2] MIPS: decompressor: remove unused linux/kernel.h header

To: ralf@linux-mips.org
Subject: [PATCH v2] MIPS: decompressor: remove unused linux/kernel.h header
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 16 Nov 2012 13:30:00 +0100
Cc: linux-mips@linux-mips.org, blogic@openwrt.org, wuzhangjin@gmail.com, Florian Fainelli <florian@openwrt.org>
In-reply-to: <1352720818-9192-1-git-send-email-florian@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1352720818-9192-1-git-send-email-florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
The decompress.c file includes linux/kernel.h which causes the following
inclusion chain to be pulled:
linux/kernel.h ->
        linux/dynamic_debug.h ->
                linux/string.h ->
                        asm/string.h

We might end up having a conflicting memcpy() and memset() pulled from
asm/string.h, since we use no declaration from linux/kernel.h, just remove
this include.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
Changes since v1:
- removed the long story about the problem we are fixing
- only remove the linux/kernel.h line

 arch/mips/boot/compressed/decompress.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/mips/boot/compressed/decompress.c 
b/arch/mips/boot/compressed/decompress.c
index 5cad0fa..b461efa 100644
--- a/arch/mips/boot/compressed/decompress.c
+++ b/arch/mips/boot/compressed/decompress.c
@@ -12,7 +12,6 @@
  */
 
 #include <linux/types.h>
-#include <linux/kernel.h>
 
 #include <asm/addrspace.h>
 
-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>