Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2020 13:24:37 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a703dd3cb841 - stable/11 - MFC r368182: Use function macro for sema_init() in the LinuxKPI to limit macro expansion scope.
Message-ID:  <202012281324.0BSDObut046714@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org>
AuthorDate: 2020-11-30 09:47:53 +0000
Commit:     Hans Petter Selasky <hselasky@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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012281324.0BSDObut046714>