Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2020 09:47:54 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368182 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202011300947.0AU9lsSQ009115@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



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