tools/include: Add _RET_IP_ and math definitions to kernel.h
authorKarolina Drobnik <karolinadrobnik@gmail.com>
Wed, 2 Feb 2022 11:03:02 +0000 (12:03 +0100)
committerMike Rapoport <rppt@kernel.org>
Wed, 9 Feb 2022 07:17:56 +0000 (09:17 +0200)
commit826c23e10ee43cc2e65203403e4b606de6388a1f
tree59273c670f80f683d5374ff95a85682fe7abab7d
parent4c12918f1086a824082a95f633f501c20ced63a4
tools/include: Add _RET_IP_ and math definitions to kernel.h

Add max_t, min_t and clamp functions, together with _RET_IP_
definition, so they can be used in testing.

Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/230fea382cb1e1659cdd52a55201854d38a0a149.1643796665.git.karolinadrobnik@gmail.com
tools/include/linux/kernel.h