]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethtool: uapi: Use UAPI definition of INT_MAX
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 13 Jan 2026 07:44:18 +0000 (08:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 17 Jan 2026 23:24:05 +0000 (15:24 -0800)
commita8a11e5237aed71b7f5f9d33c554ef06fe974311
tree6725288b1dd9a2904c2cfc41b5d841d5203f132f
parentca9d74eb5f6aea6eee746aae648382332dbcf24e
ethtool: uapi: Use UAPI definition of INT_MAX

Using <limits.h> to gain access to INT_MAX introduces a dependency on a
libc, which UAPI headers should not do.

Use the equivalent UAPI constant.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260113-uapi-limits-v2-2-93c20f4b2c1a@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/ethtool.h