Date: Sun, 17 May 2020 20:12:16 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361139 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <202005172012.04HKCGax070411@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Sun May 17 20:12:16 2020 New Revision: 361139 URL: https://svnweb.freebsd.org/changeset/base/361139 Log: linuxkpi: Add __mutex_init Same as mutex_init, the lock_class_key argument seems to be only used for debug in Linux, simply ignore it for now. Needed by DRM in Linux v5.3 Sponsored-by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24848 Modified: head/sys/compat/linuxkpi/common/include/linux/mutex.h Modified: head/sys/compat/linuxkpi/common/include/linux/mutex.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/mutex.h Sun May 17 20:09:11 2020 (r361138) +++ head/sys/compat/linuxkpi/common/include/linux/mutex.h Sun May 17 20:12:16 2020 (r361139) @@ -108,6 +108,9 @@ mutex_trylock_recursive(struct mutex *lock) #define mutex_init(_m) \ linux_mutex_init(_m, mutex_name(#_m), SX_NOWITNESS) +#define __mutex_init(_m, _n, _l) \ + linux_mutex_init(_m, _n, SX_NOWITNESS) + #define mutex_init_witness(_m) \ linux_mutex_init(_m, mutex_name(#_m), SX_DUPOK)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005172012.04HKCGax070411>