libfdt: reduce the number of headers included from libfdt_env.h
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 17 Jun 2019 16:21:23 +0000 (01:21 +0900)
committerRob Herring <robh@kernel.org>
Thu, 24 Oct 2019 22:38:31 +0000 (17:38 -0500)
Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.

<linux/kernel.h> pulls in a lots of broat.

Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
<linux/limits.h>.

This saves including dozens of headers.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/libfdt_env.h

index edb0f0c..2231eb8 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef LIBFDT_ENV_H
 #define LIBFDT_ENV_H
 
-#include <linux/kernel.h>      /* For INT_MAX */
+#include <linux/limits.h>      /* For INT_MAX */
 #include <linux/string.h>
 
 #include <asm/byteorder.h>