[PATCH v3 0/4] initrd: Use unified initrd reserve function in ARM/RISCV

Kefeng Wang
2021-01-15T05:41:30Z

Use the same implementation of initrd reserve to avoid duplication.

v3:
- split into four patches, suggested-by Palmer Dabbelt
v2:
- fix build error found by kernel test robot

Kefeng Wang (4):
initrd: Add the preprocessor guard in initrd.h
initramfs: Provide a common initrd reserve function
ARM: Covert to reserve_initrd_mem()
riscv: Covert to reserve_initrd_mem()

arch/arm/mm/init.c | 43 +--------------------------------
arch/riscv/mm/init.c | 54 +-----------------------------------------
include/linux/initrd.h | 11 +++++++++
init/initramfs.c | 45 +++++++++++++++++++++++++++++++++++
4 files changed, 58 insertions(+), 95 deletions(-)

--
2.26.2