]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: cpufeature: use bitmap_equal() instead of memcmp()
authorClément Léger <cleger@rivosinc.com>
Mon, 10 Feb 2025 15:56:14 +0000 (16:56 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 14 Feb 2025 21:06:16 +0000 (13:06 -0800)
commitc6ec1e1b078d8e2ecd075e46db6197a14930a3fc
treeda9cc0800e231caf27bfde7a2a470d6cc4420fd5
parentfb8179ce2996bffaa36a04e2b6262843b01b7565
riscv: cpufeature: use bitmap_equal() instead of memcmp()

Comparison of bitmaps should be done using bitmap_equal(), not memcmp(),
use the former one to compare isa bitmaps.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Fixes: 625034abd52a8c ("riscv: add ISA extensions validation callback")
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250210155615.1545738-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c