diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-09-02 20:06:57 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-09-02 20:06:57 +0000 |
commit | 0480d2ad8bcef1a71cd9df2d62518679d800bc78 (patch) | |
tree | 13472779310ee770fe03933432f3cb745968b93d /sys/arch/riscv64 | |
parent | 5c3b8919b72b59be79fac969c544203b65e7a4dd (diff) |
Constify nam2blk[], chrtoblktbl[] and octeon devmap[].
ok mpi@ millert@
Diffstat (limited to 'sys/arch/riscv64')
-rw-r--r-- | sys/arch/riscv64/riscv64/autoconf.c | 4 | ||||
-rw-r--r-- | sys/arch/riscv64/riscv64/conf.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/riscv64/riscv64/autoconf.c b/sys/arch/riscv64/riscv64/autoconf.c index a447667bd51..16a522a64c2 100644 --- a/sys/arch/riscv64/riscv64/autoconf.c +++ b/sys/arch/riscv64/riscv64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.4 2021/05/14 06:48:52 jsg Exp $ */ +/* $OpenBSD: autoconf.c,v 1.5 2022/09/02 20:06:56 miod Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -97,7 +97,7 @@ device_register(struct device *dev, void *aux) { } -struct nam2blk nam2blk[] = { +const struct nam2blk nam2blk[] = { { "wd", 0 }, { "sd", 4 }, { "cd", 6 }, diff --git a/sys/arch/riscv64/riscv64/conf.c b/sys/arch/riscv64/riscv64/conf.c index b21652f1fa9..5256251a3a3 100644 --- a/sys/arch/riscv64/riscv64/conf.c +++ b/sys/arch/riscv64/riscv64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.14 2022/02/18 10:51:43 visa Exp $ */ +/* $OpenBSD: conf.c,v 1.15 2022/09/02 20:06:56 miod Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -267,7 +267,7 @@ getnulldev(void) return makedev(mem_no, 2); } -int chrtoblktbl[] = { +const int chrtoblktbl[] = { /*VCHR*/ /*VBLK*/ /* 0 */ NODEV, /* 1 */ NODEV, @@ -319,7 +319,7 @@ int chrtoblktbl[] = { /* 47 */ 8, /* rd */ }; -int nchrtoblktbl = nitems(chrtoblktbl); +const int nchrtoblktbl = nitems(chrtoblktbl); /* * In order to map BSD bdev numbers of disks to their BIOS equivalents |