svn commit: r368182 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Nov 30 09:47:54 UTC 2020
Author: hselasky
Date: Mon Nov 30 09:47:53 2020
New Revision: 368182
URL: https://svnweb.freebsd.org/changeset/base/368182
Log:
Use function macro for sema_init() in the LinuxKPI to limit macro expansion scope.
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Modified:
head/sys/compat/linuxkpi/common/include/linux/semaphore.h
Modified: head/sys/compat/linuxkpi/common/include/linux/semaphore.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/semaphore.h Mon Nov 30 09:45:44 2020 (r368181)
+++ head/sys/compat/linuxkpi/common/include/linux/semaphore.h Mon Nov 30 09:47:53 2020 (r368182)
@@ -65,6 +65,6 @@ init_MUTEX(struct semaphore *sem)
sema_init(&sem->sema, 1, "lnxsema");
}
-#define sema_init linux_sema_init
+#define sema_init(...) linux_sema_init(__VA_ARGS__)
#endif /* _LINUX_SEMAPHORE_H_ */
More information about the svn-src-all
mailing list