Skip to content

Commit

Permalink
Use function macro for sema_init() in the LinuxKPI to limit macro exp…
Browse files Browse the repository at this point in the history
…ansion scope.

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking


git-svn-id: https://svn.freebsd.org/base/head@368182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  • Loading branch information
hselasky committed Nov 30, 2020
1 parent 4ecb719 commit 728b32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/compat/linuxkpi/common/include/linux/semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 728b32c

Please sign in to comment.