kexec_file() support was recently added for RISC-V [1], which triggered a handful of build issues on rv32. These all seemed pretty minor, but it looks like this is the only 32-bit platform that has attempted to build the kexec IMA support before so I'm not sure if there's something more complicated going on that I'm missing (I haven't tested any of this). The rv64 support was just merged into kernel.org/riscv/linux/for-next as 83a7a614ce58 ("riscv: kexec: add kexec_file_load() support"). I've put these on top of the pre-merged version at kernel.org/palmer/linux/riscv-kexec_file-rv32 if that helps anyone. 1: https://lore.kernel.org/all/20220408100914.150110-1-lizhengyu3@xxxxxxxxxx/