Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Convert pseudo attach functions to take no argument...



details:   https://anonhg.NetBSD.org/src/rev/b42115a14bc8
branches:  trunk
changeset: 339968:b42115a14bc8
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Tue Aug 18 13:46:20 2015 +0000

description:
Convert pseudo attach functions to take no arguments, as some functions
(pppattach(), putterattach(), etc.) already do.  This means that pseudo
attach function will be able to become a constructor.

diffstat:

 sys/kern/kern_cpu.c    |  8 ++++----
 sys/kern/kern_drvctl.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 928f9ca0d641 -r b42115a14bc8 sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c       Tue Aug 18 12:01:16 2015 +0000
+++ b/sys/kern/kern_cpu.c       Tue Aug 18 13:46:20 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_cpu.c,v 1.67 2015/01/07 07:05:48 ozaki-r Exp $    */
+/*     $NetBSD: kern_cpu.c,v 1.68 2015/08/18 13:46:20 uebayasi Exp $   */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2010, 2012 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.67 2015/01/07 07:05:48 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.68 2015/08/18 13:46:20 uebayasi Exp $");
 
 #include "opt_cpu_ucode.h"
 #include "opt_compat_netbsd.h"
@@ -94,7 +94,7 @@
 CTASSERT(offsetof(struct cpu_info, ci_data) != 0);
 #endif
 
-void   cpuctlattach(int);
+void   cpuctlattach(void);
 
 static void    cpu_xc_online(struct cpu_info *);
 static void    cpu_xc_offline(struct cpu_info *);
@@ -204,7 +204,7 @@
 }
 
 void
-cpuctlattach(int dummy)
+cpuctlattach(void)
 {
 
        KASSERT(cpu_infos != NULL);
diff -r 928f9ca0d641 -r b42115a14bc8 sys/kern/kern_drvctl.c
--- a/sys/kern/kern_drvctl.c    Tue Aug 18 12:01:16 2015 +0000
+++ b/sys/kern/kern_drvctl.c    Tue Aug 18 13:46:20 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_drvctl.c,v 1.36 2014/07/25 08:10:40 dholland Exp $ */
+/* $NetBSD: kern_drvctl.c,v 1.37 2015/08/18 13:46:20 uebayasi Exp $ */
 
 /*
  * Copyright (c) 2004
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.36 2014/07/25 08:10:40 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.37 2015/08/18 13:46:20 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -80,7 +80,7 @@
        .d_flag = D_OTHER
 };
 
-void drvctlattach(int);
+void drvctlattach(void);
 
 static int     drvctl_read(struct file *, off_t *, struct uio *,
                            kauth_cred_t, int);
@@ -432,7 +432,7 @@
 }
 
 void
-drvctlattach(int arg)
+drvctlattach(void)
 {
 }
 



Home | Main Index | Thread Index | Old Index