diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-01-13 08:44:17 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-17 15:24:05 -0800 |
| commit | ca9d74eb5f6aea6eee746aae648382332dbcf24e (patch) | |
| tree | 9f34df9ed4b221818d25423df11e103ec303a5f7 /include/uapi/linux/ethtool.h | |
| parent | 171e8ed48276dff973390c5aa3c9e93c0e903725 (diff) | |
uapi: add INT_MAX and INT_MIN constants
Some UAPI headers use INT_MAX and INT_MIN. Currently they include
<limits.h> for their definitions, which introduces a problematic
dependency on libc.
Add custom, namespaced definitions of INT_MAX and INT_MIN using the
same values as the regular kernel code.
These definitions are not added to uapi/linux/limits.h, as that header
will conflict with libc definitions on some platforms.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260113-uapi-limits-v2-1-93c20f4b2c1a@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/ethtool.h')
0 files changed, 0 insertions, 0 deletions
