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)
commit26ed19adbab16410460bd8b90ccc7430229a0b4a
tree5507e6662f8312159e6f711ec607b3d8ba33a6f9
parent04cb1d4711ba8d6eb82bcb053a173e16f6f85a70
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>
include/linux/libfdt_env.h