From 3dee2605627e194647fa5de8aea741d32632c407 Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 4 Mar 2010 08:11:42 +0000 Subject: [PATCH] avoid a build error in the previous for !DEBUG kernels. --- sys/arch/sparc64/sparc64/pmap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 71f99ab0830b..38006af61ce3 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.255 2010/03/04 08:01:35 mrg Exp $ */ +/* $NetBSD: pmap.c,v 1.256 2010/03/04 08:11:42 mrg Exp $ */ /* * * Copyright (C) 1996-1999 Eduardo Horvath. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.255 2010/03/04 08:01:35 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.256 2010/03/04 08:11:42 mrg Exp $"); #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ #define HWREF @@ -308,8 +308,8 @@ struct { int pvfirst; int pvsearch; } remove_stats; -#define ENTER_STAT(x) enter_stats.x ++ -#define REMOVE_STAT(x) remove_stats.x ++ +#define ENTER_STAT(x) do { enter_stats.x ++; } while (0) +#define REMOVE_STAT(x) do { remove_stats.x ++; } while (0) #define PDB_CREATE 0x000001 #define PDB_DESTROY 0x000002 @@ -339,8 +339,8 @@ int pmap_pages_stolen = 0; #define BDPRINTF(n, f) if (pmapdebug & (n)) prom_printf f #define DPRINTF(n, f) if (pmapdebug & (n)) printf f #else -#define ENTER_STAT(x) -#define REMOVE_STAT(x) +#define ENTER_STAT(x) do { /* nothing */ } while (0) +#define REMOVE_STAT(x) do { /* nothing */ } while (0) #define BDPRINTF(n, f) #define DPRINTF(n, f) #endif