RISC-V: Fix the rv32i kernel build
authorPalmer Dabbelt <palmer@sifive.com>
Wed, 4 Jul 2018 21:12:53 +0000 (14:12 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Wed, 4 Jul 2018 21:12:53 +0000 (14:12 -0700)
commit9a6a51154f8be90a76f6a8ea8809115c11cec9dd
tree45d372671f9eb18c2c5a04969ee97d0ea235b1bb
parent1db9b80980d26fe95c942e0bb8bde2ca715029ad
parent7df85002178e708aa749c63020fd333d9f085ced
RISC-V: Fix the rv32i kernel build

These patches for building 32-bit RISC-V kernel.
 - Fix the compile errors and warnings on RV32I.
 - Fix some incompatible problem on RV32I.
 - Add format.h for compatible of print format.

The fixed width integer types format for Elf_Addr will move to
generic header by another patch. For now, there are some warning
about unexpected argument of type on RV32I.

Change in v1:
 - Fix some error in v1
 - Remove implementation of fixed width integer types format for Elf_Addr.
arch/riscv/kernel/module.c