]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
overflow: Remove is_non_negative() and is_negative()
authorVincent Mailhol <mailhol@kernel.org>
Sat, 20 Dec 2025 11:02:21 +0000 (12:02 +0100)
committerNathan Chancellor <nathan@kernel.org>
Mon, 5 Jan 2026 23:54:14 +0000 (16:54 -0700)
commit5ce3218d4f102aca5e90d3c831259b6e380f88b4
tree7d4d2191a699e59f255984d00fcac98a8f9a2fca
parent34a1bd0b6b2c03206f3ca629eafd2cad95fd6b22
overflow: Remove is_non_negative() and is_negative()

The is_non_negative() and is_negative() function-like macros just
exist as a workaround to silence the -Wtype-limits warning. Now that
this warning is disabled, those two macros have lost their raison
d'ĂȘtre. Remove them.

This reverts commit dc7fe518b049 ("overflow: Fix -Wtype-limits
compilation warnings").

Suggested-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/all/aUT_yWin_xslnOFh@derry.ads.avm.de
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20251220-remove_wtype-limits-v3-3-24b170af700e@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
include/linux/overflow.h