Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/common Stub-out the compat ioctl routin...



details:   https://anonhg.NetBSD.org/src/rev/cbb6b9a482eb
branches:  pgoyette-compat
changeset: 321069:cbb6b9a482eb
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Mar 19 21:53:04 2018 +0000

description:
Stub-out the compat ioctl routine for now to fix compile error on
kernels with no ccd device.

diffstat:

 sys/compat/common/ccd_60.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 9657b7daaf14 -r cbb6b9a482eb sys/compat/common/ccd_60.c
--- a/sys/compat/common/ccd_60.c        Sun Mar 18 23:34:25 2018 +0000
+++ b/sys/compat/common/ccd_60.c        Mon Mar 19 21:53:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccd_60.c,v 1.1.2.4 2018/03/18 23:34:25 pgoyette Exp $  */
+/*     $NetBSD: ccd_60.c,v 1.1.2.5 2018/03/19 21:53:04 pgoyette Exp $  */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd_60.c,v 1.1.2.4 2018/03/18 23:34:25 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd_60.c,v 1.1.2.5 2018/03/19 21:53:04 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -45,6 +45,7 @@
  * sizeof (size_t) == sizeof (uint64_t) as CCDIOCSET will
  * be the same as CCDIOCSET_60
  */
+#if 0
 static int
 compat_60_ccdioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l,
     int (*f)(dev_t, u_long, void *, int, struct lwp *))
@@ -89,15 +90,18 @@
                return ENOSYS;
        }
 }
+#endif /* 0 */
 
 void
 ccd_60_init(void)
 {
-       compat_ccd_ioctl_60 = compat_60_ccdioctl;
+
+//     compat_ccd_ioctl_60 = compat_60_ccdioctl;
 }
 
 void
 ccd_60_fini(void)
 {
-       compat_ccd_ioctl_60 = (void *)enosys;
+
+//     compat_ccd_ioctl_60 = (void *)enosys;
 }



Home | Main Index | Thread Index | Old Index