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@linux.ibm.com>
Sun, 20 Feb 2022 06:44:37 +0000 (08:44 +0200)
commit5cf67a6051ea2558fd7c3d39c5a808db73073e9d
treea2edb90691c797c62c51db6fc5f59497251c4997
parent884ee1e585ca01b47f66c7e5b6902c62d1af77a3
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