kernel - Fix LINT compilation on 32-bit
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 29 Oct 2011 18:37:03 +0000 (11:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 29 Oct 2011 18:37:03 +0000 (11:37 -0700)
* Fix conditional debug compilation that was breaking 32-bit LINT builds

Reported-by: swildner
sys/vm/vm_page.h

index 0ba7e75..c7e9c73 100644 (file)
@@ -602,6 +602,7 @@ static __inline void
 vm_page_free_zero(vm_page_t m)
 {
 #ifdef PMAP_DEBUG
+#ifdef PHYS_TO_DMAP
        char *p = (char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m));
        int i;
 
@@ -610,7 +611,7 @@ vm_page_free_zero(vm_page_t m)
                        panic("non-zero page in vm_page_free_zero()");
                }
        }
-
+#endif
 #endif
        vm_page_flag_set(m, PG_ZERO);
        vm_page_free_toq(m);