Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs Fix non-DIAGNOSTIC build with UVM_PAGE_TRKOWN.



details:   https://anonhg.NetBSD.org/src/rev/9022e57e2a2c
branches:  trunk
changeset: 744940:9022e57e2a2c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Feb 18 17:50:32 2020 +0000

description:
Fix non-DIAGNOSTIC build with UVM_PAGE_TRKOWN.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 30c813153807 -r 9022e57e2a2c sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Tue Feb 18 17:50:20 2020 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Tue Feb 18 17:50:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.164 2019/04/14 15:55:24 kardel Exp $   */
+/*     $NetBSD: ffs_alloc.c,v 1.165 2020/02/18 17:50:32 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.164 2019/04/14 15:55:24 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.165 2020/02/18 17:50:32 riastradh Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -208,7 +208,7 @@
            ffs_lblktosize(fs, (voff_t)lbn) < round_page(vp->v_size) &&
            ((vp->v_vflag & VV_MAPPED) != 0 || (size & PAGE_MASK) != 0 ||
             ffs_blkoff(fs, size) != 0)) {
-               struct vm_page *pg;
+               struct vm_page *pg __diagused;
                struct uvm_object *uobj = &vp->v_uobj;
                voff_t off = trunc_page(ffs_lblktosize(fs, lbn));
                voff_t endoff = round_page(ffs_lblktosize(fs, lbn) + size);
@@ -328,7 +328,7 @@
         */
 
        if (ITOV(ip)->v_type == VREG) {
-               struct vm_page *pg;
+               struct vm_page *pg __diagused;
                struct uvm_object *uobj = &ITOV(ip)->v_uobj;
                voff_t off = trunc_page(ffs_lblktosize(fs, lbprev));
                voff_t endoff = round_page(ffs_lblktosize(fs, lbprev) + osize);



Home | Main Index | Thread Index | Old Index