Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2016 17:36:06 +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: r294518 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201601211736.u0LHa6Tx015506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Jan 21 17:36:06 2016
New Revision: 294518
URL: https://svnweb.freebsd.org/changeset/base/294518

Log:
  Use function macro instead of non-function macro to reduce chance of
  incorrect expansion.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

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	Thu Jan 21 17:33:31 2016	(r294517)
+++ head/sys/compat/linuxkpi/common/include/linux/mutex.h	Thu Jan 21 17:36:06 2016	(r294518)
@@ -59,6 +59,6 @@ linux_mutex_init(mutex_t *m)
 	sx_init_flags(&m->sx, "lnxmtx",  SX_NOWITNESS);
 }
 
-#define	mutex_init	linux_mutex_init
+#define	mutex_init(m)	linux_mutex_init(m)
 
 #endif	/* _LINUX_MUTEX_H_ */



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