Fix kernel builds with pseudo-device rd
authortb <tb@openbsd.org>
Thu, 7 Apr 2022 09:37:32 +0000 (09:37 +0000)
committertb <tb@openbsd.org>
Thu, 7 Apr 2022 09:37:32 +0000 (09:37 +0000)
commit3c78bc9451ce7ce927aaecc9f8e5113de7023a9c
tree500f22ad091a6ad4dc2f1040d4140d8699b768c4
parent42b7fbe82fb751e7b08d27c77d80fca24fac640b
Fix kernel builds with pseudo-device rd

Make the cf_attach member of struct cfdata const and sprinkle a few
const into subr_autoconf.c to make this work. Fixes the compilation
of sys/dev/rd.c with newly const rd_ca.

ok miod (who had a similar diff)
sys/kern/subr_autoconf.c
sys/sys/device.h