git: a703dd3cb841 - stable/11 - MFC r368182: Use function macro for sema_init() in the LinuxKPI to limit macro expansion scope.

Hans Petter Selasky hselasky at FreeBSD.org
Mon Dec 28 13:24:37 UTC 2020


The branch stable/11 has been updated by hselasky:

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

commit a703dd3cb8418252ce0af0db0eba928db3388b6b
Author:     Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2020-11-30 09:47:53 +0000
Commit:     Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2020-12-28 13:24:04 +0000

    MFC r368182:
    Use function macro for sema_init() in the LinuxKPI to limit macro expansion scope.
    
    Sponsored by:   Mellanox Technologies // NVIDIA Networking
---
 sys/compat/linuxkpi/common/include/linux/semaphore.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/semaphore.h b/sys/compat/linuxkpi/common/include/linux/semaphore.h
index 59a35311a5cc..e4a72fd9b47a 100644
--- a/sys/compat/linuxkpi/common/include/linux/semaphore.h
+++ b/sys/compat/linuxkpi/common/include/linux/semaphore.h
@@ -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 dev-commits-src-all mailing list