aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-05-19 17:21:24 +0000
committerConrad Meyer <cem@FreeBSD.org>2016-05-19 17:21:24 +0000
commit80e939f256e9286d40ebed15701722fe98b48ba1 (patch)
tree0ca15ec644ff12562a23deb65a6c5ffa2655471d /sys/sys/vmmeter.h
parent7e52504fc2d1331cfe8451af5463de32c3fd908c (diff)
downloadsrc-80e939f256e9286d40ebed15701722fe98b48ba1.tar.gz
src-80e939f256e9286d40ebed15701722fe98b48ba1.zip
sys/vmmeter.h: Fix trivial '-Wsign-compare' warning in common header
Frankly, it doesn't make sense for vm_pageout_wakeup_thresh to have a negative value (it is only ever set to a fraction of v_free_min, which is unsigned and also obviously non-negative). But I'm not going to try and convert every non-negative scalar in the VM to unsigned today, so just cast it for the comparison. Submitted by: Clang 3.3 Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=300220
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 532e5299f797..b7cbb1147bd5 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -186,7 +186,7 @@ int
vm_paging_needed(void)
{
return (vm_cnt.v_free_count + vm_cnt.v_cache_count <
- vm_pageout_wakeup_thresh);
+ (u_int)vm_pageout_wakeup_thresh);
}
#endif