aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libfdt_env.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-18 01:21:23 +0900
committerRob Herring <robh@kernel.org>2019-10-24 17:38:31 -0500
commit26ed19adbab16410460bd8b90ccc7430229a0b4a (patch)
tree5507e6662f8312159e6f711ec607b3d8ba33a6f9 /include/linux/libfdt_env.h
parentdt-bindings: gpu: samsung-rotator: Fix indentation (diff)
downloadlinux-dev-26ed19adbab16410460bd8b90ccc7430229a0b4a.tar.xz
linux-dev-26ed19adbab16410460bd8b90ccc7430229a0b4a.zip
libfdt: reduce the number of headers included from libfdt_env.h
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>
Diffstat (limited to 'include/linux/libfdt_env.h')
-rw-r--r--include/linux/libfdt_env.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
index edb0f0c30904..2231eb855e8f 100644
--- a/include/linux/libfdt_env.h
+++ b/include/linux/libfdt_env.h
@@ -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>