Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Mark pseudo attach unused arg with __unused.
details: https://anonhg.NetBSD.org/src/rev/c3726122931b
branches: trunk
changeset: 340006:c3726122931b
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Aug 20 08:27:09 2015 +0000
description:
Mark pseudo attach unused arg with __unused.
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 1fc4456b11f8 -r c3726122931b sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c Thu Aug 20 08:25:33 2015 +0000
+++ b/sys/kern/kern_cpu.c Thu Aug 20 08:27:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_cpu.c,v 1.68 2015/08/18 13:46:20 uebayasi Exp $ */
+/* $NetBSD: kern_cpu.c,v 1.69 2015/08/20 08:27:09 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.68 2015/08/18 13:46:20 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.69 2015/08/20 08:27:09 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(void);
+void cpuctlattach(int);
static void cpu_xc_online(struct cpu_info *);
static void cpu_xc_offline(struct cpu_info *);
@@ -204,7 +204,7 @@
}
void
-cpuctlattach(void)
+cpuctlattach(int dummy __unused)
{
KASSERT(cpu_infos != NULL);
diff -r 1fc4456b11f8 -r c3726122931b sys/kern/kern_drvctl.c
--- a/sys/kern/kern_drvctl.c Thu Aug 20 08:25:33 2015 +0000
+++ b/sys/kern/kern_drvctl.c Thu Aug 20 08:27:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_drvctl.c,v 1.37 2015/08/18 13:46:20 uebayasi Exp $ */
+/* $NetBSD: kern_drvctl.c,v 1.38 2015/08/20 08:27:09 uebayasi Exp $ */
/*
* Copyright (c) 2004
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.37 2015/08/18 13:46:20 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.38 2015/08/20 08:27:09 uebayasi Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -80,7 +80,7 @@
.d_flag = D_OTHER
};
-void drvctlattach(void);
+void drvctlattach(int);
static int drvctl_read(struct file *, off_t *, struct uio *,
kauth_cred_t, int);
@@ -432,7 +432,7 @@
}
void
-drvctlattach(void)
+drvctlattach(int arg __unused)
{
}
Home |
Main Index |
Thread Index |
Old Index