summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 01:18:58 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 01:18:58 +0000
commit34c87715dd3424febc6cb5524e46e8ac900ecd5b (patch)
treeaa4bca84f8718e9b0a60a04c013600ebe373fd53 /sys/arch
parentf5d040ac297491ad084c2a984bd5a30ced7e045e (diff)
All users of physio(9) now pass NULL as the buf pointer argument, so
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/dev/ct.c6
-rw-r--r--sys/arch/hp300/dev/hd.c6
-rw-r--r--sys/arch/hp300/dev/mt.c6
-rw-r--r--sys/arch/sparc/dev/fd.c6
-rw-r--r--sys/arch/sparc/dev/presto.c6
-rw-r--r--sys/arch/sparc/dev/xd.c6
-rw-r--r--sys/arch/sparc/dev/xy.c6
-rw-r--r--sys/arch/sparc64/dev/fd.c6
-rw-r--r--sys/arch/vax/mba/hp.c6
-rw-r--r--sys/arch/vax/mscp/mscp_disk.c10
-rw-r--r--sys/arch/vax/mscp/mscp_tape.c6
-rw-r--r--sys/arch/vax/qbus/qd.c6
-rw-r--r--sys/arch/vax/vsa/hdc9224.c6
13 files changed, 41 insertions, 41 deletions
diff --git a/sys/arch/hp300/dev/ct.c b/sys/arch/hp300/dev/ct.c
index ea1bc02d2f9..25295601210 100644
--- a/sys/arch/hp300/dev/ct.c
+++ b/sys/arch/hp300/dev/ct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ct.c,v 1.21 2008/06/12 06:58:33 deraadt Exp $ */
+/* $OpenBSD: ct.c,v 1.22 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: ct.c,v 1.21 1997/04/02 22:37:23 scottr Exp $ */
/*
@@ -864,7 +864,7 @@ ctread(dev, uio, flags)
struct uio *uio;
int flags;
{
- return (physio(ctstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(ctstrategy, dev, B_READ, minphys, uio));
}
int
@@ -874,7 +874,7 @@ ctwrite(dev, uio, flags)
int flags;
{
/* XXX: check for hardware write-protect? */
- return (physio(ctstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(ctstrategy, dev, B_WRITE, minphys, uio));
}
/*ARGSUSED*/
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c
index e23eeb7c53f..6d2bd489153 100644
--- a/sys/arch/hp300/dev/hd.c
+++ b/sys/arch/hp300/dev/hd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hd.c,v 1.62 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: hd.c,v 1.63 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */
/*
@@ -1110,7 +1110,7 @@ hdread(dev, uio, flags)
int flags;
{
- return (physio(hdstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(hdstrategy, dev, B_READ, minphys, uio));
}
int
@@ -1120,7 +1120,7 @@ hdwrite(dev, uio, flags)
int flags;
{
- return (physio(hdstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(hdstrategy, dev, B_WRITE, minphys, uio));
}
int
diff --git a/sys/arch/hp300/dev/mt.c b/sys/arch/hp300/dev/mt.c
index b0615f51166..d76f55c3a6f 100644
--- a/sys/arch/hp300/dev/mt.c
+++ b/sys/arch/hp300/dev/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.24 2010/07/10 03:06:51 matthew Exp $ */
+/* $OpenBSD: mt.c,v 1.25 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: mt.c,v 1.8 1997/03/31 07:37:29 scottr Exp $ */
/*
@@ -914,7 +914,7 @@ mtread(dev, uio, flags)
struct uio *uio;
int flags;
{
- return (physio(mtstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(mtstrategy, dev, B_READ, minphys, uio));
}
int
@@ -923,7 +923,7 @@ mtwrite(dev, uio, flags)
struct uio *uio;
int flags;
{
- return (physio(mtstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(mtstrategy, dev, B_WRITE, minphys, uio));
}
int
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 97fcecb84f1..acf5e6ac2e6 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.76 2010/09/20 06:33:47 matthew Exp $ */
+/* $OpenBSD: fd.c,v 1.77 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -1007,7 +1007,7 @@ fdread(dev, uio, flag)
int flag;
{
- return (physio(fdstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(fdstrategy, dev, B_READ, minphys, uio));
}
int
@@ -1017,7 +1017,7 @@ fdwrite(dev, uio, flag)
int flag;
{
- return (physio(fdstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(fdstrategy, dev, B_WRITE, minphys, uio));
}
void
diff --git a/sys/arch/sparc/dev/presto.c b/sys/arch/sparc/dev/presto.c
index 401996e8a2f..cfdf91d664c 100644
--- a/sys/arch/sparc/dev/presto.c
+++ b/sys/arch/sparc/dev/presto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: presto.c,v 1.18 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: presto.c,v 1.19 2010/09/22 01:18:57 matthew Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -259,13 +259,13 @@ prestoclose(dev_t dev, int flag, int fmt, struct proc *proc)
int
prestoread(dev_t dev, struct uio *uio, int flags)
{
- return (physio(prestostrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(prestostrategy, dev, B_READ, minphys, uio));
}
int
prestowrite(dev_t dev, struct uio *uio, int flags)
{
- return (physio(prestostrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(prestostrategy, dev, B_WRITE, minphys, uio));
}
void
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c
index bb16447c11f..befdf6bfb83 100644
--- a/sys/arch/sparc/dev/xd.c
+++ b/sys/arch/sparc/dev/xd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xd.c,v 1.50 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: xd.c,v 1.51 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */
/*
@@ -954,7 +954,7 @@ xdread(dev, uio, flags)
int flags;
{
- return (physio(xdstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(xdstrategy, dev, B_READ, minphys, uio));
}
int
@@ -964,7 +964,7 @@ xdwrite(dev, uio, flags)
int flags;
{
- return (physio(xdstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(xdstrategy, dev, B_WRITE, minphys, uio));
}
diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c
index 239bc2afd69..42b10c2e715 100644
--- a/sys/arch/sparc/dev/xy.c
+++ b/sys/arch/sparc/dev/xy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xy.c,v 1.48 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: xy.c,v 1.49 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */
/*
@@ -917,7 +917,7 @@ xyread(dev, uio, flags)
int flags;
{
- return (physio(xystrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(xystrategy, dev, B_READ, minphys, uio));
}
int
@@ -927,7 +927,7 @@ xywrite(dev, uio, flags)
int flags;
{
- return (physio(xystrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(xystrategy, dev, B_WRITE, minphys, uio));
}
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c
index 597c6339cb1..67e11009e0a 100644
--- a/sys/arch/sparc64/dev/fd.c
+++ b/sys/arch/sparc64/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.33 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: fd.c,v 1.34 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */
/*-
@@ -1035,7 +1035,7 @@ fdread(dev, uio, flag)
int flag;
{
- return (physio(fdstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(fdstrategy, dev, B_READ, minphys, uio));
}
int
@@ -1045,7 +1045,7 @@ fdwrite(dev, uio, flag)
int flag;
{
- return (physio(fdstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(fdstrategy, dev, B_WRITE, minphys, uio));
}
void
diff --git a/sys/arch/vax/mba/hp.c b/sys/arch/vax/mba/hp.c
index fdd4bd42cf2..567a6f8c25a 100644
--- a/sys/arch/vax/mba/hp.c
+++ b/sys/arch/vax/mba/hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hp.c,v 1.21 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: hp.c,v 1.22 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: hp.c,v 1.22 2000/02/12 16:09:33 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -475,7 +475,7 @@ hpread(dev, uio)
dev_t dev;
struct uio *uio;
{
- return (physio(hpstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(hpstrategy, dev, B_READ, minphys, uio));
}
int
@@ -483,5 +483,5 @@ hpwrite(dev, uio)
dev_t dev;
struct uio *uio;
{
- return (physio(hpstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(hpstrategy, dev, B_WRITE, minphys, uio));
}
diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c
index 27aeaa679e2..854c673c47a 100644
--- a/sys/arch/vax/mscp/mscp_disk.c
+++ b/sys/arch/vax/mscp/mscp_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mscp_disk.c,v 1.30 2010/09/08 14:47:10 jsing Exp $ */
+/* $OpenBSD: mscp_disk.c,v 1.31 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -345,7 +345,7 @@ raread(dev, uio)
struct uio *uio;
{
- return (physio(rastrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(rastrategy, dev, B_READ, minphys, uio));
}
int
@@ -354,7 +354,7 @@ rawrite(dev, uio)
struct uio *uio;
{
- return (physio(rastrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(rastrategy, dev, B_WRITE, minphys, uio));
}
/*
@@ -675,7 +675,7 @@ rxread(dev, uio)
struct uio *uio;
{
- return (physio(rxstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(rxstrategy, dev, B_READ, minphys, uio));
}
int
@@ -684,7 +684,7 @@ rxwrite(dev, uio)
struct uio *uio;
{
- return (physio(rxstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(rxstrategy, dev, B_WRITE, minphys, uio));
}
/*
diff --git a/sys/arch/vax/mscp/mscp_tape.c b/sys/arch/vax/mscp/mscp_tape.c
index d192564076b..8a7ea3beb82 100644
--- a/sys/arch/vax/mscp/mscp_tape.c
+++ b/sys/arch/vax/mscp/mscp_tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mscp_tape.c,v 1.10 2007/06/06 17:15:13 deraadt Exp $ */
+/* $OpenBSD: mscp_tape.c,v 1.11 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: mscp_tape.c,v 1.16 2001/11/13 07:38:28 lukem Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -285,7 +285,7 @@ mtread(dev, uio)
struct uio *uio;
{
- return (physio(mtstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(mtstrategy, dev, B_READ, minphys, uio));
}
int
@@ -294,7 +294,7 @@ mtwrite(dev, uio)
struct uio *uio;
{
- return (physio(mtstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(mtstrategy, dev, B_WRITE, minphys, uio));
}
void
diff --git a/sys/arch/vax/qbus/qd.c b/sys/arch/vax/qbus/qd.c
index 5b46316e2e6..d97ce5b9bc8 100644
--- a/sys/arch/vax/qbus/qd.c
+++ b/sys/arch/vax/qbus/qd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qd.c,v 1.19 2010/07/10 03:06:51 matthew Exp $ */
+/* $OpenBSD: qd.c,v 1.20 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: qd.c,v 1.17 2000/01/24 02:40:29 matt Exp $ */
/*-
@@ -1601,7 +1601,7 @@ qdwrite(dev, uio, flag)
/*
* this is a DMA xfer from user space
*/
- return (physio(qd_strategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(qd_strategy, dev, B_WRITE, minphys, uio));
}
return (ENXIO);
}
@@ -1629,7 +1629,7 @@ qdread(dev, uio, flag)
/*
* this is a bitmap-to-processor xfer
*/
- return (physio(qd_strategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(qd_strategy, dev, B_READ, minphys, uio));
}
return (ENXIO);
}
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c
index 18020d066c5..ba4c509951b 100644
--- a/sys/arch/vax/vsa/hdc9224.c
+++ b/sys/arch/vax/vsa/hdc9224.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hdc9224.c,v 1.31 2010/09/20 06:33:48 matthew Exp $ */
+/* $OpenBSD: hdc9224.c,v 1.32 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: hdc9224.c,v 1.16 2001/07/26 15:05:09 wiz Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -739,7 +739,7 @@ hdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
int
hdread(dev_t dev, struct uio *uio, int flag)
{
- return (physio(hdstrategy, NULL, dev, B_READ, minphys, uio));
+ return (physio(hdstrategy, dev, B_READ, minphys, uio));
}
/*
@@ -748,7 +748,7 @@ hdread(dev_t dev, struct uio *uio, int flag)
int
hdwrite(dev_t dev, struct uio *uio, int flag)
{
- return (physio(hdstrategy, NULL, dev, B_WRITE, minphys, uio));
+ return (physio(hdstrategy, dev, B_WRITE, minphys, uio));
}
/*