From 498c03681bf6f93bdc87b70ad76481260e4834b9 Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 22 Apr 2015 03:48:52 +0000 Subject: [PATCH] having macros provide semicolons is dangerous. --- sys/uvm/uvm_page.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.20.1