summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)