git: df370b47a66f - stable/13 - linuxkpi: Add _RET_IP_ macro in kernel.h

Neel Chauhan nc at FreeBSD.org
Sat Jun 12 00:41:06 UTC 2021


The branch stable/13 has been updated by nc (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=df370b47a66f27e195a26d0e983a64a3756823bb

commit df370b47a66f27e195a26d0e983a64a3756823bb
Author:     Neel Chauhan <nc at FreeBSD.org>
AuthorDate: 2021-06-09 21:34:58 +0000
Commit:     Neel Chauhan <nc at FreeBSD.org>
CommitDate: 2021-06-12 00:41:08 +0000

    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 fee0d486ef34c6bd113ed743e33357ff626f2495)
---
 sys/compat/linuxkpi/common/include/linux/kernel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index daef6216a151..6ee292940016 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -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)
 {


More information about the dev-commits-src-all mailing list