Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/vme Make local cdevsw functions static.
details: https://anonhg.NetBSD.org/src/rev/f4ccae990e0d
branches: trunk
changeset: 368296:f4ccae990e0d
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jul 03 15:25:54 2022 +0000
description:
Make local cdevsw functions static.
XXX: there is no config file that has leo(4) (though it still compiles)
diffstat:
sys/arch/atari/vme/et4000.c | 16 ++++++++--------
sys/arch/atari/vme/leo.c | 14 +++++++-------
2 files changed, 15 insertions(+), 15 deletions(-)
diffs (72 lines):
diff -r 8fa8085ddfd9 -r f4ccae990e0d sys/arch/atari/vme/et4000.c
--- a/sys/arch/atari/vme/et4000.c Sun Jul 03 14:35:54 2022 +0000
+++ b/sys/arch/atari/vme/et4000.c Sun Jul 03 15:25:54 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: et4000.c,v 1.26 2014/07/25 08:10:32 dholland Exp $ */
+/* $NetBSD: et4000.c,v 1.27 2022/07/03 15:25:54 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: et4000.c,v 1.26 2014/07/25 08:10:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: et4000.c,v 1.27 2022/07/03 15:25:54 tsutsui Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -130,12 +130,12 @@
CFATTACH_DECL_NEW(et4k, sizeof(struct et4k_softc),
et4k_vme_match, et4k_vme_attach, NULL, NULL);
-dev_type_open(et4kopen);
-dev_type_close(et4kclose);
-dev_type_read(et4kread);
-dev_type_write(et4kwrite);
-dev_type_ioctl(et4kioctl);
-dev_type_mmap(et4kmmap);
+static dev_type_open(et4kopen);
+static dev_type_close(et4kclose);
+static dev_type_read(et4kread);
+static dev_type_write(et4kwrite);
+static dev_type_ioctl(et4kioctl);
+static dev_type_mmap(et4kmmap);
const struct cdevsw et4k_cdevsw = {
.d_open = et4kopen,
diff -r 8fa8085ddfd9 -r f4ccae990e0d sys/arch/atari/vme/leo.c
--- a/sys/arch/atari/vme/leo.c Sun Jul 03 14:35:54 2022 +0000
+++ b/sys/arch/atari/vme/leo.c Sun Jul 03 15:25:54 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: leo.c,v 1.22 2017/02/01 14:33:10 christos Exp $ */
+/* $NetBSD: leo.c,v 1.23 2022/07/03 15:25:54 tsutsui Exp $ */
/*-
* Copyright (c) 1997 maximum entropy <entropy%zippy.bernstein.com@localhost>
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: leo.c,v 1.22 2017/02/01 14:33:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: leo.c,v 1.23 2022/07/03 15:25:54 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -101,11 +101,11 @@
CFATTACH_DECL_NEW(leo, sizeof(struct leo_softc),
leo_match, leo_attach, NULL, NULL);
-dev_type_open(leoopen);
-dev_type_close(leoclose);
-dev_type_read(leomove);
-dev_type_ioctl(leoioctl);
-dev_type_mmap(leommap);
+static dev_type_open(leoopen);
+static dev_type_close(leoclose);
+static dev_type_read(leomove);
+static dev_type_ioctl(leoioctl);
+static dev_type_mmap(leommap);
const struct cdevsw leo_cdevsw = {
.d_open = leoopen,
Home |
Main Index |
Thread Index |
Old Index