Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev constify
details: https://anonhg.NetBSD.org/src/rev/c47a885d3671
branches: trunk
changeset: 1009110:c47a885d3671
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Apr 13 08:05:02 2020 +0000
description:
constify
diffstat:
sys/dev/ata/wd.c | 6 +++---
sys/dev/cgd.c | 6 +++---
sys/dev/ld.c | 6 +++---
sys/dev/md.c | 6 +++---
sys/dev/scsipi/cd.c | 6 +++---
sys/dev/scsipi/sd.c | 6 +++---
sys/dev/vnd.c | 10 +++++-----
7 files changed, 23 insertions(+), 23 deletions(-)
diffs (201 lines):
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/ata/wd.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.460 2020/04/07 13:22:05 jdolecek Exp $ */
+/* $NetBSD: wd.c,v 1.461 2020/04/13 08:05:02 maxv Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.460 2020/04/07 13:22:05 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.461 2020/04/13 08:05:02 maxv Exp $");
#include "opt_ata.h"
#include "opt_wd.h"
@@ -213,7 +213,7 @@
static void wd_sysctl_attach(struct wd_softc *);
static void wd_sysctl_detach(struct wd_softc *);
-struct dkdriver wddkdriver = {
+static const struct dkdriver wddkdriver = {
.d_open = wdopen,
.d_close = wdclose,
.d_strategy = wdstrategy,
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/cgd.c
--- a/sys/dev/cgd.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/cgd.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.124 2020/03/20 19:03:13 tnn Exp $ */
+/* $NetBSD: cgd.c,v 1.125 2020/04/13 08:05:02 maxv Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.124 2020/03/20 19:03:13 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.125 2020/04/13 08:05:02 maxv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -233,7 +233,7 @@
static void cgd_cipher(struct cgd_softc *, void *, void *,
size_t, daddr_t, size_t, int);
-static struct dkdriver cgddkdriver = {
+static const struct dkdriver cgddkdriver = {
.d_minphys = minphys,
.d_open = cgdopen,
.d_close = cgdclose,
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/ld.c
--- a/sys/dev/ld.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/ld.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld.c,v 1.109 2020/03/01 03:21:54 riastradh Exp $ */
+/* $NetBSD: ld.c,v 1.110 2020/04/13 08:05:02 maxv Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.109 2020/03/01 03:21:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.110 2020/04/13 08:05:02 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -110,7 +110,7 @@
.d_flag = D_DISK | D_MPSAFE
};
-static struct dkdriver lddkdriver = {
+static const struct dkdriver lddkdriver = {
.d_open = ldopen,
.d_close = ldclose,
.d_strategy = ldstrategy,
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/md.c
--- a/sys/dev/md.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/md.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.83 2020/01/18 14:02:18 ad Exp $ */
+/* $NetBSD: md.c,v 1.84 2020/04/13 08:05:02 maxv Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.83 2020/01/18 14:02:18 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.84 2020/04/13 08:05:02 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_md.h"
@@ -131,7 +131,7 @@
.d_flag = D_DISK | D_MPSAFE
};
-static struct dkdriver mddkdriver = {
+static const struct dkdriver mddkdriver = {
.d_strategy = mdstrategy,
.d_minphys = minphys
};
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/scsipi/cd.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd.c,v 1.343 2020/03/27 11:15:33 mlelstv Exp $ */
+/* $NetBSD: cd.c,v 1.344 2020/04/13 08:05:02 maxv Exp $ */
/*-
* Copyright (c) 1998, 2001, 2003, 2004, 2005, 2008 The NetBSD Foundation,
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.343 2020/03/27 11:15:33 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.344 2020/04/13 08:05:02 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -233,7 +233,7 @@
.d_flag = D_DISK | D_MPSAFE
};
-static struct dkdriver cddkdriver = {
+static const struct dkdriver cddkdriver = {
.d_open = cdopen,
.d_close = cdclose,
.d_strategy = cdstrategy,
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/scsipi/sd.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.328 2020/03/01 03:21:54 riastradh Exp $ */
+/* $NetBSD: sd.c,v 1.329 2020/04/13 08:05:02 maxv Exp $ */
/*-
* Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.328 2020/03/01 03:21:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.329 2020/04/13 08:05:02 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_scsi.h"
@@ -185,7 +185,7 @@
.d_flag = D_DISK | D_MPSAFE
};
-static struct dkdriver sddkdriver = {
+static const struct dkdriver sddkdriver = {
.d_open = sdopen,
.d_close = sdclose,
.d_strategy = sdstrategy,
diff -r f3f5d491be00 -r c47a885d3671 sys/dev/vnd.c
--- a/sys/dev/vnd.c Mon Apr 13 07:32:36 2020 +0000
+++ b/sys/dev/vnd.c Mon Apr 13 08:05:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.275 2020/04/10 10:53:02 jdolecek Exp $ */
+/* $NetBSD: vnd.c,v 1.276 2020/04/13 08:05:02 maxv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008, 2020 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.275 2020/04/10 10:53:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.276 2020/04/13 08:05:02 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -235,9 +235,9 @@
vnd_match, vnd_attach, vnd_detach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
static struct vnd_softc *vnd_spawn(int);
-int vnd_destroy(device_t);
+static int vnd_destroy(device_t);
-static struct dkdriver vnddkdriver = {
+static const struct dkdriver vnddkdriver = {
.d_strategy = vndstrategy,
.d_minphys = minphys
};
@@ -308,7 +308,7 @@
return device_private(config_attach_pseudo(cf));
}
-int
+static int
vnd_destroy(device_t dev)
{
int error;
Home |
Main Index |
Thread Index |
Old Index