From: dlg Date: Wed, 22 Apr 2015 03:48:52 +0000 (+0000) Subject: having macros provide semicolons is dangerous. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=498c03681bf6f93bdc87b70ad76481260e4834b9;p=openbsd having macros provide semicolons is dangerous. --- diff --git a/sys/uvm/uvm_page.h b/sys/uvm/uvm_page.h index f2bd6dd1116..32119e7f597 100644 --- a/sys/uvm/uvm_page.h +++ b/sys/uvm/uvm_page.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.h,v 1.57 2015/02/07 01:46:27 kettenis Exp $ */ +/* $OpenBSD: uvm_page.h,v 1.58 2015/04/22 03:48:52 dlg Exp $ */ /* $NetBSD: uvm_page.h,v 1.19 2000/12/28 08:24:55 chs Exp $ */ /* @@ -290,8 +290,8 @@ int vm_physseg_find(paddr_t, int *); #define uvm_lock_pageq() /* lock */ #define uvm_unlock_pageq() /* unlock */ -#define uvm_lock_fpageq() mtx_enter(&uvm.fpageqlock); -#define uvm_unlock_fpageq() mtx_leave(&uvm.fpageqlock); +#define uvm_lock_fpageq() mtx_enter(&uvm.fpageqlock) +#define uvm_unlock_fpageq() mtx_leave(&uvm.fpageqlock) #define UVM_PAGEZERO_TARGET (uvmexp.free / 8)