]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 13 Nov 2019 07:12:02 +0000 (16:12 +0900)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:47:27 +0000 (23:47 -0500)
commit5053fdd0922951f7fa2ae83f61016333484ca2ac
tree95cb510e3d51f0fee3707b913de1c9cc4cae7aa3
parent21e60e14f1b05c4343078da2ce0d5149ff032669
libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h

BugLink: https://bugs.launchpad.net/bugs/1860602
[ Upstream commit a8de1304b7df30e3a14f2a8b9709bb4ff31a0385 ]

The DTC v1.5.1 added references to (U)INT32_MAX.

This is no problem for user-space programs since <stdint.h> defines
(U)INT32_MAX along with (u)int32_t.

For the kernel space, libfdt_env.h needs to be adjusted before we
pull in the changes.

In the kernel, we usually use s/u32 instead of (u)int32_t for the
fixed-width types.

Accordingly, we already have S/U32_MAX for their max values.
So, we should not add (U)INT32_MAX to <linux/limits.h> any more.

Instead, add them to the in-kernel libfdt_env.h to compile the
latest libfdt.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/boot/compressed/libfdt_env.h
arch/powerpc/boot/libfdt_env.h
include/linux/libfdt_env.h