]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: compat: s/failed/unsupported if compat mode isn't supported
authorJisheng Zhang <jszhang@kernel.org>
Sun, 21 Aug 2022 14:18:19 +0000 (22:18 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Oct 2022 01:07:17 +0000 (18:07 -0700)
commitd72de7786e73687ce64d840a23ae781076c64bc3
tree07737e0b90cc635804aef3651c537e5447a72412
parentb5d1c20be9dd1a69702e5b0406f12728efc03841
riscv: compat: s/failed/unsupported if compat mode isn't supported

When compat mode isn't supported(I believe this is the most case now),
kernel will emit somthing as:
[    0.050407] riscv: ELF compat mode failed

This msg may make users think there's something wrong with the kernel
itself, replace "failed" with "unsupported" to make it clear. In fact
this is the real compat_mode_supported meaning. After the patch, the
msg would be:
[    0.050407] riscv: ELF compat mode unsupported

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20220821141819.3804-1-jszhang@kernel.org/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/process.c