[PATCH RFC net-next 0/3] uapi: Use UAPI definitions of INT_MAX and INT_MIN
From: Thomas Weißschuh
Date: Mon Jan 05 2026 - 03:28:14 EST
Using <limits.h> to gain access to INT_MAX and INT_MIN introduces a
dependency on a libc, which UAPI headers should not do.
Introduce and use equivalent UAPI constants.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
Thomas Weißschuh (3):
uapi: add INT_MAX and INT_MIN constants
ethtool: uapi: Use UAPI definition of INT_MAX
netfilter: uapi: Use UAPI definition of INT_MAX and INT_MIN
include/uapi/linux/ethtool.h | 7 ++-----
include/uapi/linux/limits.h | 3 +++
include/uapi/linux/netfilter_bridge.h | 9 +++------
include/uapi/linux/netfilter_ipv4.h | 9 ++++-----
include/uapi/linux/netfilter_ipv6.h | 7 +++----
5 files changed, 15 insertions(+), 20 deletions(-)
---
base-commit: dbf8fe85a16a33d6b6bd01f2bc606fc017771465
change-id: 20251229-uapi-limits-56c45c9369c9
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>