move limits for sNN/uNN types from kernel.h to limits.h
authorRasmus Villemoes <ravi@prevas.dk>
Mon, 7 Jul 2025 20:36:54 +0000 (22:36 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jul 2025 18:43:28 +0000 (12:43 -0600)
commit0604595c16a6bf3c0aed131b80d1a25d5d74057d
treebda8fdd379f4ba97aa7d3d96ff0f11cbf3e86cf7
parentdc323f3bee318514af9d7c6fed1e01c712bc71ae
move limits for sNN/uNN types from kernel.h to limits.h

Since we define the {s,u}{8,16,32,64} types the same way on all
architectures, i.e. everybody uses asm-generic/int-ll64.h, we can just
define the associated limit macros in terms of those for the
corresponding types. This eliminates another set of limit macros that
are not usable in #if conditionals.

These type names and macros are not C or POSIX, so there's no language
violation, but certainly a violation of developers' reasonable
expectations.

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