summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2022-09-02 20:06:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2022-09-02 20:06:57 +0000
commit0480d2ad8bcef1a71cd9df2d62518679d800bc78 (patch)
tree13472779310ee770fe03933432f3cb745968b93d /sys/arch/sparc64
parent5c3b8919b72b59be79fac969c544203b65e7a4dd (diff)
Constify nam2blk[], chrtoblktbl[] and octeon devmap[].
ok mpi@ millert@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c4
-rw-r--r--sys/arch/sparc64/sparc64/conf.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c
index a828db2f853..079b7ce2152 100644
--- a/sys/arch/sparc64/sparc64/autoconf.c
+++ b/sys/arch/sparc64/sparc64/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.140 2021/10/24 17:05:04 mpi Exp $ */
+/* $OpenBSD: autoconf.c,v 1.141 2022/09/02 20:06:56 miod Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
@@ -1540,7 +1540,7 @@ nail_bootdev(struct device *dev, struct bootpath *bp)
bootpath_store(1, NULL);
}
-struct nam2blk nam2blk[] = {
+const struct nam2blk nam2blk[] = {
{ "rd", 5 },
{ "sd", 7 },
{ "vnd", 8 },
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index 9c5b692f24e..497db445498 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.86 2021/11/11 10:03:09 claudio Exp $ */
+/* $OpenBSD: conf.c,v 1.87 2022/09/02 20:06:56 miod Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -340,7 +340,7 @@ getnulldev(void)
return makedev(mem_no, 2);
}
-int chrtoblktbl[] = {
+const int chrtoblktbl[] = {
/*VCHR*/ /*VBLK*/
/* 0 */ NODEV,
/* 1 */ NODEV,
@@ -454,4 +454,4 @@ int chrtoblktbl[] = {
/*109 */ NODEV,
/*110 */ 8, /* vnd */
};
-int nchrtoblktbl = nitems(chrtoblktbl);
+const int nchrtoblktbl = nitems(chrtoblktbl);