Module Name: src Committed By: fox Date: Wed Jan 16 13:21:02 UTC 2019
Modified Files: src/tests/sys/uvm: t_uvm_physseg.c Log Message: Fixed the build failures caused by incompatible type comparisons when VM_PHYSSEG is > 1. Reviewed by <cherry> To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/sys/uvm/t_uvm_physseg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/sys/uvm/t_uvm_physseg.c diff -u src/tests/sys/uvm/t_uvm_physseg.c:1.4 src/tests/sys/uvm/t_uvm_physseg.c:1.5 --- src/tests/sys/uvm/t_uvm_physseg.c:1.4 Tue Dec 18 07:11:35 2018 +++ src/tests/sys/uvm/t_uvm_physseg.c Wed Jan 16 13:21:02 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: t_uvm_physseg.c,v 1.4 2018/12/18 07:11:35 fox Exp $ */ +/* $NetBSD: t_uvm_physseg.c,v 1.5 2019/01/16 13:21:02 fox Exp $ */ /*- * Copyright (c) 2015, 2016 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_uvm_physseg.c,v 1.4 2018/12/18 07:11:35 fox Exp $"); +__RCSID("$NetBSD: t_uvm_physseg.c,v 1.5 2019/01/16 13:21:02 fox Exp $"); /* * If this line is commented out tests related to uvm_physseg_get_pmseg() @@ -512,7 +512,7 @@ ATF_TC_BODY(uvm_physseg_plug, tc) #if VM_PHYSSEG_MAX > 2 + npages2 #endif - + npages3, uvmexp.npages); + + npages3, INT_TO_PSIZE_T(uvmexp.npages)); /* Scavenge plug should fit right in the slab */ pgs = uvm_physseg_get_pg(upm3, 0);