summaryrefslogtreecommitdiff
path: root/vm/vm_page.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-01 23:58:41 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-02 15:25:37 +0200
commitd18d0e85596f90e0bd597b33d58209d0b3973c95 (patch)
tree6c3472f59cf64244ab86d2fc13b220b1c8f61165 /vm/vm_page.c
parent897ad6a062ea2a32a2759613608faf3271211832 (diff)
Make assert have no side effects
This makes sure symbols referenced by assert uses may not be generated if unused. The recently introduced __unused macro is used to suppress compiler warnings resulting from this change.
Diffstat (limited to 'vm/vm_page.c')
-rw-r--r--vm/vm_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c
index 49c2c11e..19f6f4be 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -790,7 +790,7 @@ vm_page_lookup(phys_addr_t pa)
return NULL;
}
-static bool
+__unused static bool
vm_page_block_referenced(const struct vm_page *page, unsigned int order)
{
unsigned int i, nr_pages;