]> www.infradead.org Git - users/hch/configfs.git/commit
riscv: mm: Fix prototype to avoid discarding const
authorSamuel Holland <samuel.holland@sifive.com>
Fri, 1 Mar 2024 20:18:32 +0000 (12:18 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 26 Mar 2024 15:26:43 +0000 (08:26 -0700)
commit674bc0168e6b68070c75df22e97ab63b6eb60d89
tree2df4e33c6b447ebdcb07d53cf9be4b8c09d1a4b2
parent4cece764965020c22cff7665b18a012006359095
riscv: mm: Fix prototype to avoid discarding const

__flush_tlb_range() does not modify the provided cpumask, so its cmask
parameter can be pointer-to-const. This avoids the unsafe cast of
cpu_online_mask.

Fixes: 54d7431af73e ("riscv: Add support for BATCHED_UNMAP_TLB_FLUSH")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240301201837.2826172-1-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/tlbflush.c