Module Name:    src
Committed By:   reinoud
Date:           Mon Jan  9 14:56:35 UTC 2012

Modified Files:
        src/sys/arch/usermode/dev: ld_thunkbus.c

Log Message:
sizeof_t is allways >=0 and the check for >=0 thus allways is true and amd64
complains about this. This might explain the odd write errors that could
sometimes be reported. Those are/were probably a side effect of this.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/usermode/dev/ld_thunkbus.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/arch/usermode/dev/ld_thunkbus.c
diff -u src/sys/arch/usermode/dev/ld_thunkbus.c:1.27 src/sys/arch/usermode/dev/ld_thunkbus.c:1.28
--- src/sys/arch/usermode/dev/ld_thunkbus.c:1.27	Fri Jan  6 20:40:51 2012
+++ src/sys/arch/usermode/dev/ld_thunkbus.c	Mon Jan  9 14:56:35 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 reinoud Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.28 2012/01/09 14:56:35 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.28 2012/01/09 14:56:35 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -149,7 +149,7 @@ ld_thunkbus_complete(void *arg)
 	struct ld_thunkbus_transfer *tt = &sc->sc_tt;
 	struct buf *bp = tt->tt_bp;
 	off_t offset = bp->b_rawblkno * ld->sc_secsize;
-	size_t ret;
+	int64_t ret;
 
 	if (!sc->busy)
 		panic("%s: but not busy?\n", __func__);

Reply via email to