diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-06-26 05:20:44 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-06-26 05:20:44 +0000 |
commit | dd9f9676b693e638369c04457d9047e43bb1beba (patch) | |
tree | 738bcf1c6b1dc604c54d3d2c083336a8d93ca541 /sys/tmpfs | |
parent | 9d47c59f8ead970e0266524e1112297aa29095c9 (diff) |
Remove unused VOP_POLL().
OK mpi@
Diffstat (limited to 'sys/tmpfs')
-rw-r--r-- | sys/tmpfs/tmpfs_fifoops.c | 3 | ||||
-rw-r--r-- | sys/tmpfs/tmpfs_specops.c | 3 | ||||
-rw-r--r-- | sys/tmpfs/tmpfs_vnops.c | 11 | ||||
-rw-r--r-- | sys/tmpfs/tmpfs_vnops.h | 3 |
4 files changed, 4 insertions, 16 deletions
diff --git a/sys/tmpfs/tmpfs_fifoops.c b/sys/tmpfs/tmpfs_fifoops.c index dbb92492c53..2e6d266fa3e 100644 --- a/sys/tmpfs/tmpfs_fifoops.c +++ b/sys/tmpfs/tmpfs_fifoops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_fifoops.c,v 1.6 2021/10/02 08:51:41 semarie Exp $ */ +/* $OpenBSD: tmpfs_fifoops.c,v 1.7 2022/06/26 05:20:42 visa Exp $ */ /* $NetBSD: tmpfs_fifoops.c,v 1.9 2011/05/24 20:17:49 rmind Exp $ */ /* @@ -64,7 +64,6 @@ const struct vops tmpfs_fifovops = { .vop_read = tmpfs_fifo_read, .vop_write = tmpfs_fifo_write, .vop_ioctl = fifo_ioctl, - .vop_poll = fifo_poll, .vop_kqfilter = fifo_kqfilter, .vop_revoke = vop_generic_revoke, .vop_fsync = tmpfs_fifo_fsync, diff --git a/sys/tmpfs/tmpfs_specops.c b/sys/tmpfs/tmpfs_specops.c index 1c3069d9cd6..0c5a01bc1e3 100644 --- a/sys/tmpfs/tmpfs_specops.c +++ b/sys/tmpfs/tmpfs_specops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_specops.c,v 1.8 2021/10/02 08:51:41 semarie Exp $ */ +/* $OpenBSD: tmpfs_specops.c,v 1.9 2022/06/26 05:20:42 visa Exp $ */ /* $NetBSD: tmpfs_specops.c,v 1.10 2011/05/24 20:17:49 rmind Exp $ */ /* @@ -71,7 +71,6 @@ const struct vops tmpfs_specvops = { .vop_mknod = vop_generic_badop, .vop_open = spec_open, .vop_ioctl = spec_ioctl, - .vop_poll = spec_poll, .vop_kqfilter = spec_kqfilter, .vop_revoke = vop_generic_revoke, .vop_remove = vop_generic_badop, diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c index 5682b4f6345..bc1390d72c9 100644 --- a/sys/tmpfs/tmpfs_vnops.c +++ b/sys/tmpfs/tmpfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vnops.c,v 1.51 2021/12/11 09:28:26 visa Exp $ */ +/* $OpenBSD: tmpfs_vnops.c,v 1.52 2022/06/26 05:20:42 visa Exp $ */ /* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */ /* @@ -46,7 +46,6 @@ #include <sys/unistd.h> #include <sys/vnode.h> #include <sys/lockf.h> -#include <sys/poll.h> #include <sys/file.h> #include <miscfs/fifofs/fifo.h> @@ -70,7 +69,6 @@ const struct vops tmpfs_vops = { .vop_read = tmpfs_read, .vop_write = tmpfs_write, .vop_ioctl = tmpfs_ioctl, - .vop_poll = tmpfs_poll, .vop_kqfilter = tmpfs_kqfilter, .vop_revoke = vop_generic_revoke, .vop_fsync = tmpfs_fsync, @@ -1176,13 +1174,6 @@ tmpfs_bwrite(void *v) } int -tmpfs_poll(void *v) -{ - struct vop_poll_args *ap = v; - return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)); -} - -int tmpfs_strategy(void *v) { return EOPNOTSUPP; diff --git a/sys/tmpfs/tmpfs_vnops.h b/sys/tmpfs/tmpfs_vnops.h index 9ef283d4da4..ba5ebdc0890 100644 --- a/sys/tmpfs/tmpfs_vnops.h +++ b/sys/tmpfs/tmpfs_vnops.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vnops.h,v 1.6 2020/01/20 23:21:56 claudio Exp $ */ +/* $OpenBSD: tmpfs_vnops.h,v 1.7 2022/06/26 05:20:42 visa Exp $ */ /* $NetBSD: tmpfs_vnops.h,v 1.13 2011/05/24 20:17:49 rmind Exp $ */ /* @@ -55,7 +55,6 @@ int tmpfs_setattr (void *); int tmpfs_read (void *); int tmpfs_write (void *); int tmpfs_ioctl (void *); -int tmpfs_poll (void *); int tmpfs_fsync (void *); int tmpfs_remove (void *); int tmpfs_link (void *); |