Skip to content

uapi: Use UAPI definitions of INT_MAX and INT_MIN

Thomas Weißschuh lkml netdev netfilter-devel 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20251229-uapi-limits-56c45c9369c9

Versions newest first

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v1 RFC3 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Use uapi/linux/typelimits.h over uapi/linux/limits.h
- Drop RFC status
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3uapi: add INT_MAX and INT_MIN constantsinclude/uapi/linux/typelimits.h+8 -00 repliesApplied
2/3ethtool: uapi: Use UAPI definition of INT_MAXinclude/uapi/linux/ethtool.h+2 -50 repliesApplied
3/3netfilter: uapi: Use UAPI definition of INT_MAX and INT_MINinclude/uapi/linux/netfilter_bridge.h include/uapi/linux/netfilter_ipv4.h include/uapi/linux/netfilter_ipv6.h+10 -150 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] uapi: Use UAPI definitions of INT_MAX and INT_MIN

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.

---
Changes in v2:
- Use uapi/linux/typelimits.h over uapi/linux/limits.h
- Drop RFC status
- Link to v1: https://lore.kernel.org/r/[email protected]

---
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/netfilter_bridge.h | 9 +++------
 include/uapi/linux/netfilter_ipv4.h   | 9 ++++-----
 include/uapi/linux/netfilter_ipv6.h   | 7 +++----
 include/uapi/linux/typelimits.h       | 8 ++++++++
 5 files changed, 20 insertions(+), 20 deletions(-)

---
base-commit: 16ce6e6fa946ca6fd1e4fce6926b52b6263d98a8
change-id: 20251229-uapi-limits-56c45c9369c9

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>