summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2008-09-26 18:44:40 +0000
committeremaste <emaste@FreeBSD.org>2008-09-26 18:44:40 +0000
commita173e0f84d9dd9d48f9b844cfaa7481406bce97d (patch)
tree607928206514188a966c2afdff4ae8f557be3a4a /sys/vm
parentba942d55439c34784ef1028eca969353647a270b (diff)
downloadFreeBSD-src-a173e0f84d9dd9d48f9b844cfaa7481406bce97d.zip
FreeBSD-src-a173e0f84d9dd9d48f9b844cfaa7481406bce97d.tar.gz
Move CTASSERT from header file to source file, per implementation note now
in the CTASSERT man page.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c7
-rw-r--r--sys/vm/vm_page.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index c947d16..a7a62f1 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -149,6 +149,13 @@ SYSCTL_INT(_vm, OID_AUTO, boot_pages, CTLFLAG_RD, &boot_pages, 0,
static void vm_page_enqueue(int queue, vm_page_t m);
+/* Make sure that u_long is at least 64 bits when PAGE_SIZE is 32K. */
+#if PAGE_SIZE == 32768
+#ifdef CTASSERT
+CTASSERT(sizeof(u_long) >= 8);
+#endif
+#endif
+
/*
* vm_set_page_size:
*
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index ac920d0..f609a21 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -150,13 +150,6 @@ struct vm_page {
#define VPO_SWAPINPROG 0x0200 /* swap I/O in progress on page */
#define VPO_NOSYNC 0x0400 /* do not collect for syncer */
-/* Make sure that u_long is at least 64 bits when PAGE_SIZE is 32K. */
-#if PAGE_SIZE == 32768
-#ifdef CTASSERT
-CTASSERT(sizeof(u_long) >= 8);
-#endif
-#endif
-
#define PQ_NONE 0
#define PQ_INACTIVE 1
#define PQ_ACTIVE 2
OpenPOWER on IntegriCloud