aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeel Chauhan <nc@FreeBSD.org>2021-06-09 21:34:58 +0000
committerNeel Chauhan <nc@FreeBSD.org>2021-06-09 21:41:44 +0000
commitfee0d486ef34c6bd113ed743e33357ff626f2495 (patch)
treeab848c53fb27ca8638361f317997d75772e01a05
parent278e370066734a06f6b35e585568ac34969b1e84 (diff)
downloadsrc-fee0d486ef34c6bd113ed743e33357ff626f2495.tar.gz
src-fee0d486ef34c6bd113ed743e33357ff626f2495.zip
linuxkpi: Add _RET_IP_ macro in kernel.h
This is needed by the drm-kmod 5.7 update. Approved by: hselasky (src) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D30707
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index f34179d9566b..aba5896111f7 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -301,6 +301,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)
{