aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-05-19 17:54:14 +0000
committerConrad Meyer <cem@FreeBSD.org>2016-05-19 17:54:14 +0000
commit5a2e650a3666ffcfc424ac3e3a290c9ee3ede970 (patch)
tree8d741137441533001ab4a3ee99af40033f842edf /sys/vm/vm_page.c
parent514a71eba72d3cb435447008ad77a32053227bf7 (diff)
downloadsrc-5a2e650a3666ffcfc424ac3e3a290c9ee3ede970.tar.gz
src-5a2e650a3666ffcfc424ac3e3a290c9ee3ede970.zip
vm/vm_page.h: Fix trivial '-Wpointer-sign' warning
pq_vcnt, as a count of real things, has no business being negative. It is only ever initialized by a u_int counter. The warning came from the atomic_add_int() in vm_pagequeue_cnt_add(). Rectify the warning by changing the variable to u_int. No functional change. Suggested by: Clang 3.3 Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=300223
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 2f3b17fb56a9..0ea8d863a352 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -384,11 +384,11 @@ vm_page_domain_init(struct vm_domain *vmd)
*__DECONST(char **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_name) =
"vm inactive pagequeue";
- *__DECONST(int **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_vcnt) =
+ *__DECONST(u_int **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_vcnt) =
&vm_cnt.v_inactive_count;
*__DECONST(char **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_name) =
"vm active pagequeue";
- *__DECONST(int **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_vcnt) =
+ *__DECONST(u_int **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_vcnt) =
&vm_cnt.v_active_count;
vmd->vmd_page_count = 0;
vmd->vmd_free_count = 0;