Module Name:    src
Committed By:   simonb
Date:           Wed Aug  5 04:47:35 UTC 2020

Modified Files:
        src/sys/arch/mips/cavium: octeon_intr.c

Log Message:
Apply some static to some symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mips/cavium/octeon_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/cavium/octeon_intr.c
diff -u src/sys/arch/mips/cavium/octeon_intr.c:1.21 src/sys/arch/mips/cavium/octeon_intr.c:1.22
--- src/sys/arch/mips/cavium/octeon_intr.c:1.21	Wed Aug  5 04:19:11 2020
+++ src/sys/arch/mips/cavium/octeon_intr.c	Wed Aug  5 04:47:35 2020
@@ -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 @@ static const struct ipl_sr_map octeon_ip
     },
 };
 
-const char * octeon_intrnames[NIRQS] = {
+static const char * octeon_intrnames[NIRQS] = {
 	"workq 0",
 	"workq 1",
 	"workq 2",
@@ -166,7 +166,7 @@ struct octeon_intrhand {
 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 @@ struct octeon_intrhand ipi_intrhands[1] 
 };
 #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

Reply via email to