Module Name: src
Committed By: christos
Date: Sun Mar 23 09:34:42 UTC 2014
Modified Files:
src/sys/fs/udf: udf_strat_sequential.c udf_subr.c udf_vnops.c
Log Message:
fix unused
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/fs/udf/udf_strat_sequential.c
cvs rdiff -u -r1.123 -r1.124 src/sys/fs/udf/udf_subr.c
cvs rdiff -u -r1.90 -r1.91 src/sys/fs/udf/udf_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/udf/udf_strat_sequential.c
diff -u src/sys/fs/udf/udf_strat_sequential.c:1.12 src/sys/fs/udf/udf_strat_sequential.c:1.13
--- src/sys/fs/udf/udf_strat_sequential.c:1.12 Fri Oct 18 15:56:55 2013
+++ src/sys/fs/udf/udf_strat_sequential.c Sun Mar 23 05:34:42 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_strat_sequential.c,v 1.12 2013/10/18 19:56:55 christos Exp $ */
+/* $NetBSD: udf_strat_sequential.c,v 1.13 2014/03/23 09:34:42 christos Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_strat_sequential.c,v 1.12 2013/10/18 19:56:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_strat_sequential.c,v 1.13 2014/03/23 09:34:42 christos Exp $");
#endif /* not lint */
@@ -525,6 +525,7 @@ udf_doshedule(struct udf_mount *ump)
&ump->metadata_track);
assert(error == 0);
mutex_enter(&priv->discstrat_mutex);
+ __USE(error);
}
}
Index: src/sys/fs/udf/udf_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.123 src/sys/fs/udf/udf_subr.c:1.124
--- src/sys/fs/udf/udf_subr.c:1.123 Thu Jan 23 05:13:56 2014
+++ src/sys/fs/udf/udf_subr.c Sun Mar 23 05:34:42 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.123 2014/01/23 10:13:56 hannken Exp $ */
+/* $NetBSD: udf_subr.c,v 1.124 2014/03/23 09:34:42 christos Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.123 2014/01/23 10:13:56 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.124 2014/03/23 09:34:42 christos Exp $");
#endif /* not lint */
@@ -2471,6 +2471,7 @@ udf_extattr_insert_internal(struct udf_m
/* can't append already written to file descriptors yet */
assert(l_ad == 0);
+ __USE(l_ad);
/* should have a header! */
extattrhdr = (struct extattrhdr_desc *) data;
@@ -6512,6 +6513,7 @@ udf_read_internal(struct udf_node *node,
addr_type = icbflags & UDF_ICB_TAG_FLAGS_ALLOC_MASK;
assert(addr_type == UDF_ICB_INTERN_ALLOC);
+ __USE(addr_type);
assert(inflen < sector_size);
/* copy out info */
@@ -6550,7 +6552,9 @@ udf_write_internal(struct udf_node *node
addr_type = icbflags & UDF_ICB_TAG_FLAGS_ALLOC_MASK;
assert(addr_type == UDF_ICB_INTERN_ALLOC);
+ __USE(addr_type);
assert(inflen < sector_size);
+ __USE(sector_size);
/* copy in blob */
/* memset(pos, 0, inflen); */
Index: src/sys/fs/udf/udf_vnops.c
diff -u src/sys/fs/udf/udf_vnops.c:1.90 src/sys/fs/udf/udf_vnops.c:1.91
--- src/sys/fs/udf/udf_vnops.c:1.90 Fri Feb 7 10:29:22 2014
+++ src/sys/fs/udf/udf_vnops.c Sun Mar 23 05:34:42 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_vnops.c,v 1.90 2014/02/07 15:29:22 hannken Exp $ */
+/* $NetBSD: udf_vnops.c,v 1.91 2014/03/23 09:34:42 christos Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.90 2014/02/07 15:29:22 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.91 2014/03/23 09:34:42 christos Exp $");
#endif /* not lint */
@@ -487,6 +487,7 @@ udf_vfsstrategy(void *v)
/* check assertions: we OUGHT to always get multiples of this */
assert(sectors * lb_size == bp->b_bcount);
+ __USE(sectors);
/* issue buffer */
if (bp->b_flags & B_READ) {