Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/cavium/dev Sprinkle some static.



details:   https://anonhg.NetBSD.org/src/rev/a24ffa052957
branches:  trunk
changeset: 379028:a24ffa052957
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed May 05 06:47:29 2021 +0000

description:
Sprinkle some static.

diffstat:

 sys/arch/mips/cavium/dev/octeon_cib.c  |   6 +++---
 sys/arch/mips/cavium/dev/octeon_gmx.c  |  16 ++++++++--------
 sys/arch/mips/cavium/dev/octeon_intc.c |   6 +++---
 3 files changed, 14 insertions(+), 14 deletions(-)

diffs (112 lines):

diff -r cc42f0c58a6b -r a24ffa052957 sys/arch/mips/cavium/dev/octeon_cib.c
--- a/sys/arch/mips/cavium/dev/octeon_cib.c     Wed May 05 06:46:37 2021 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_cib.c     Wed May 05 06:47:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: octeon_cib.c,v 1.6 2021/01/27 03:10:21 thorpej Exp $ */
+/* $NetBSD: octeon_cib.c,v 1.7 2021/05/05 06:47:29 simonb Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_cib.c,v 1.6 2021/01/27 03:10:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_cib.c,v 1.7 2021/05/05 06:47:29 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -53,7 +53,7 @@ static bool   octeon_cib_intrstr(device_t,
 
 static int     octeon_cib_intr(void *);
 
-struct fdtbus_interrupt_controller_func octeon_cib_funcs = {
+static struct fdtbus_interrupt_controller_func octeon_cib_funcs = {
        .establish = octeon_cib_establish,
        .disestablish = octeon_cib_disestablish,
        .intrstr = octeon_cib_intrstr
diff -r cc42f0c58a6b -r a24ffa052957 sys/arch/mips/cavium/dev/octeon_gmx.c
--- a/sys/arch/mips/cavium/dev/octeon_gmx.c     Wed May 05 06:46:37 2021 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_gmx.c     Wed May 05 06:47:29 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_gmx.c,v 1.17 2021/04/24 23:36:42 thorpej Exp $  */
+/*     $NetBSD: octeon_gmx.c,v 1.18 2021/05/05 06:47:29 simonb Exp $   */
 
 /*
  * Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.17 2021/04/24 23:36:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.18 2021/05/05 06:47:29 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,33 +138,33 @@ static const int  octgmx_rx_adr_cam_regs[
        GMX0_RX0_ADR_CAM3, GMX0_RX0_ADR_CAM4, GMX0_RX0_ADR_CAM5
 };
 
-struct octgmx_port_ops octgmx_port_ops_mii = {
+static struct octgmx_port_ops octgmx_port_ops_mii = {
        /* XXX not implemented */
 };
 
-struct octgmx_port_ops octgmx_port_ops_gmii = {
+static struct octgmx_port_ops octgmx_port_ops_gmii = {
        .port_ops_enable = octgmx_rgmii_enable,
        .port_ops_speed = octgmx_rgmii_speed,
        .port_ops_timing = octgmx_rgmii_timing,
 };
 
-struct octgmx_port_ops octgmx_port_ops_rgmii = {
+static struct octgmx_port_ops octgmx_port_ops_rgmii = {
        .port_ops_enable = octgmx_rgmii_enable,
        .port_ops_speed = octgmx_rgmii_speed,
        .port_ops_timing = octgmx_rgmii_timing,
 };
 
-struct octgmx_port_ops octgmx_port_ops_sgmii = {
+static struct octgmx_port_ops octgmx_port_ops_sgmii = {
        .port_ops_enable = octgmx_sgmii_enable,
        .port_ops_speed = octgmx_sgmii_speed,
        .port_ops_timing = octgmx_sgmii_timing,
 };
 
-struct octgmx_port_ops octgmx_port_ops_spi42 = {
+static struct octgmx_port_ops octgmx_port_ops_spi42 = {
        /* XXX not implemented */
 };
 
-struct octgmx_port_ops *octgmx_port_ops[] = {
+static struct octgmx_port_ops *octgmx_port_ops[] = {
        [GMX_MII_PORT] = &octgmx_port_ops_mii,
        [GMX_GMII_PORT] = &octgmx_port_ops_gmii,
        [GMX_RGMII_PORT] = &octgmx_port_ops_rgmii,
diff -r cc42f0c58a6b -r a24ffa052957 sys/arch/mips/cavium/dev/octeon_intc.c
--- a/sys/arch/mips/cavium/dev/octeon_intc.c    Wed May 05 06:46:37 2021 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_intc.c    Wed May 05 06:47:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: octeon_intc.c,v 1.6 2021/01/27 03:10:21 thorpej Exp $ */
+/* $NetBSD: octeon_intc.c,v 1.7 2021/05/05 06:47:29 simonb Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_intc.c,v 1.6 2021/01/27 03:10:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_intc.c,v 1.7 2021/05/05 06:47:29 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -49,7 +49,7 @@ static void * octeon_intc_establish(devi
 static void    octeon_intc_disestablish(device_t, void *);
 static bool    octeon_intc_intrstr(device_t, u_int *, char *, size_t);
 
-struct fdtbus_interrupt_controller_func octeon_intc_funcs = {
+static struct fdtbus_interrupt_controller_func octeon_intc_funcs = {
        .establish = octeon_intc_establish,
        .disestablish = octeon_intc_disestablish,
        .intrstr = octeon_intc_intrstr



Home | Main Index | Thread Index | Old Index