Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/deadfs Uncomment the argument struct declarations...



details:   https://anonhg.NetBSD.org/src/rev/1e3573dbd155
branches:  trunk
changeset: 337597:1e3573dbd155
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 20 23:30:58 2015 +0000

description:
Uncomment the argument struct declarations in deadfs.

We don't actually use them, but this is the only way the vop
versioning mechanism flags code that needs changing.

diffstat:

 sys/miscfs/deadfs/dead_vnops.c |  34 +++++++++++++++++++---------------
 1 files changed, 19 insertions(+), 15 deletions(-)

diffs (110 lines):

diff -r 9394db5d2a64 -r 1e3573dbd155 sys/miscfs/deadfs/dead_vnops.c
--- a/sys/miscfs/deadfs/dead_vnops.c    Mon Apr 20 23:12:56 2015 +0000
+++ b/sys/miscfs/deadfs/dead_vnops.c    Mon Apr 20 23:30:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dead_vnops.c,v 1.58 2015/04/20 23:03:08 riastradh Exp $        */
+/*     $NetBSD: dead_vnops.c,v 1.59 2015/04/20 23:30:58 riastradh Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dead_vnops.c,v 1.58 2015/04/20 23:03:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dead_vnops.c,v 1.59 2015/04/20 23:30:58 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -122,17 +122,18 @@
        return EBADF;
 }
 
-/* ARGSUSED */
 int
 dead_bmap(void *v)
 {
-       /* struct vop_bmap_args {
+       struct vop_bmap_args /* {
                struct vnode *a_vp;
                daddr_t  a_bn;
                struct vnode **a_vpp;
                daddr_t *a_bnp;
                int *a_runp;
-       } *ap = v; */
+       } */ *ap = v;
+
+       (void)ap;
 
        return (EIO);
 }
@@ -151,15 +152,16 @@
        return ENOENT;
 }
 
-/* ARGSUSED */
 int
 dead_open(void *v)
 {
-       /* struct vop_open_args {
+       struct vop_open_args /* {
                struct vnode *a_vp;
                int a_mode;
                kauth_cred_t a_cred;
-       } *ap = v; */
+       } */ *ap = v;
+
+       (void)ap;
 
        return (ENXIO);
 }
@@ -182,32 +184,34 @@
        return (0);
 }
 
-/* ARGSUSED */
 int
 dead_write(void *v)
 {
-       /* struct vop_write_args {
+       struct vop_write_args /* {
                struct vnode *a_vp;
                struct uio *a_uio;
                int  a_ioflag;
                kauth_cred_t a_cred;
-       } *ap = v; */
+       } */ *ap = v;
+
+       (void)ap;
 
        return (EIO);
 }
 
-/* ARGSUSED */
 int
 dead_ioctl(void *v)
 {
-       /* struct vop_ioctl_args {
+       struct vop_ioctl_args /* {
                struct vnode *a_vp;
                u_long a_command;
                void *a_data;
                int  a_fflag;
                kauth_cred_t a_cred;
                struct lwp *a_l;
-       } *ap = v; */
+       } */ *ap = v;
+
+       (void)ap;
 
        return (EBADF);
 }
@@ -356,7 +360,7 @@
 dead_putpages(void *v)
 {
         struct vop_putpages_args /* {
-       struct vnode *a_vp;
+               struct vnode *a_vp;
                voff_t a_offlo;
                voff_t a_offhi;
                int a_flags;



Home | Main Index | Thread Index | Old Index