limits.h: provide all limit macros for standard [u]intNN_t types
authorRasmus Villemoes <ravi@prevas.dk>
Mon, 7 Jul 2025 20:36:55 +0000 (22:36 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jul 2025 18:43:28 +0000 (12:43 -0600)
commitdd260d95fd26deedc64f076b554759d09420f006
tree7b2ec62ad2f72f200a1648b13915f94a735839b6
parent0604595c16a6bf3c0aed131b80d1a25d5d74057d
limits.h: provide all limit macros for standard [u]intNN_t types

Currently, we only have UINT32_MAX and UINT64_MAX in limits.h, and
then stdint.h and kernel.h somewhat randomly define UINT8_MAX and
INT32_MAX, respectively.

Provide a full set of definitions in terms of the min/max macros for
the types that [u]intNN_t are defined in terms of, namely the {s,u}NN
ones.

Try to avoid breaking whatever depended on getting UINT8_MAX from our
compat stdint.h by replacing it with an include of limits.h.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
include/limits.h
include/linux/kernel.h
include/stdint.h