linuxkpi: Add _RET_IP_ macro in kernel.h

This is needed by the drm-kmod 5.7 update.

Approved by:		hselasky (src)
Differential Revision:	https://reviews.freebsd.org/D30707

(cherry picked from commit fee0d486ef)
This commit is contained in:
Neel Chauhan 2021-06-09 14:34:58 -07:00
parent 04456f7118
commit df370b47a6

View file

@ -283,6 +283,8 @@ extern int linuxkpi_debug;
#define u64_to_user_ptr(val) ((void *)(uintptr_t)(val))
#define _RET_IP_ __builtin_return_address(0)
static inline unsigned long long
simple_strtoull(const char *cp, char **endp, unsigned int base)
{