summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-11-11 01:47:21 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:55 +0200
commit8e8d9ca01fc40a2bb3b96d560f030948d1596d03 (patch)
tree756cd763cbfcdf0f22562378c86cf6870883dd0e
parent561a7af16b65929d3712e990b6c23f821e342675 (diff)
2006-11-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
* i386/intel/pmap.c (SPLVM, SPLX): Artificially use parameter of macro.
-rw-r--r--ChangeLog1
-rw-r--r--i386/intel/pmap.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 732a40a..76377b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@
* i386/i386at/lpr.c (lprattach): Remove unused `tp' variable.
(lprsetstat): Remove unused `dev_addr' and `s' variables.
* i386/intel/pmap.c (pmap_bootstrap): Remove unused `pteva' variable.
+ (SPLVM, SPLX): Artificially use parameter of macro.
* ipc/ipc_kmsg.c (ipc_kmsg_copyin_body): Remove unused `mr' variable.
* kern/bootstrap.c (boot_script_exec_cmd): Remove unused
`boot_exec_info' and `user_map' variables.
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 43f952b..5c287ec 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -351,8 +351,8 @@ lock_data_t pmap_system_lock;
#else /* NCPUS > 1 */
-#define SPLVM(spl)
-#define SPLX(spl)
+#define SPLVM(spl) ((void)(spl))
+#define SPLX(spl) ((void)(spl))
#define PMAP_READ_LOCK(pmap, spl) SPLVM(spl)
#define PMAP_WRITE_LOCK(spl) SPLVM(spl)