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 Apply some static to some symbols.



details:   https://anonhg.NetBSD.org/src/rev/6c8f860d118e
branches:  trunk
changeset: 974610:6c8f860d118e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Aug 05 04:47:35 2020 +0000

description:
Apply some static to some symbols.

diffstat:

 sys/arch/mips/cavium/octeon_intr.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 0f6dc3f18cfe -r 6c8f860d118e sys/arch/mips/cavium/octeon_intr.c
--- a/sys/arch/mips/cavium/octeon_intr.c        Wed Aug 05 04:19:11 2020 +0000
+++ b/sys/arch/mips/cavium/octeon_intr.c        Wed Aug 05 04:47:35 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_intr.c,v 1.21 2020/08/05 04:19:11 simonb Exp $  */
+/*     $NetBSD: octeon_intr.c,v 1.22 2020/08/05 04:47:35 simonb Exp $  */
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
  * All rights reserved.
@@ -44,7 +44,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.21 2020/08/05 04:19:11 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.22 2020/08/05 04:47:35 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -88,7 +88,7 @@
     },
 };
 
-const char * octeon_intrnames[NIRQS] = {
+static const char * octeon_intrnames[NIRQS] = {
        "workq 0",
        "workq 1",
        "workq 2",
@@ -166,7 +166,7 @@
 static int octeon_send_ipi(struct cpu_info *, int);
 static int octeon_ipi_intr(void *);
 
-struct octeon_intrhand ipi_intrhands[1] = {
+static struct octeon_intrhand ipi_intrhands[1] = {
        [0] = {
                .ih_func = octeon_ipi_intr,
                .ih_arg = (void *)(uintptr_t)__BITS(15,0),
@@ -176,13 +176,13 @@
 };
 #endif
 
-struct octeon_intrhand *octciu_intrs[NIRQS] = {
+static struct octeon_intrhand *octciu_intrs[NIRQS] = {
 #ifdef MULTIPROCESSOR
        [CIU_INT_MBOX_15_0] = &ipi_intrhands[0],
 #endif
 };
 
-kmutex_t octeon_intr_lock;
+static kmutex_t octeon_intr_lock;
 
 #if defined(MULTIPROCESSOR)
 #define        OCTEON_NCPU     MAXCPUS



Home | Main Index | Thread Index | Old Index