riscv: mm: mark noncoherent_supported as __ro_after_init
authorJisheng Zhang <jszhang@kernel.org>
Wed, 14 Jun 2023 16:55:04 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jul 2023 17:32:05 +0000 (10:32 -0700)
commit8500808a991f0e569b3d835a6223848c0717a6c7
tree5546627633a6d8ff23d77cd581c4f2efc4faabad
parent3b472f860c5c73244a9b951c10c289cc9ee080f3
riscv: mm: mark noncoherent_supported as __ro_after_init

The noncoherent_supported indicates whether the HW is coherent or not,
it won't change after booting, mark it as __ro_after_init.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230614165504.532-4-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/dma-noncoherent.c