On Wed, 13 Jan 2021 18:33:58 PST (-0800), wangkefeng.wang@xxxxxxxxxx wrote:The ARM and riscv have same logic to check and reserve
the memory of initrd, let's provide a common function to
reduce duplicated code.
Add __LINUX_INITRD_H define in initrd.h to prevent build error
(found by kernel test robot <lkp@xxxxxxxxx>) from the multiple
inclusion of same header file multiple time.
This is doing a bunch of different things:
* Fixing the lack of a preprocessor guard in initrd.h
* Adding some generic code.
* Converting two architectures over to that generic code.
It needs to be split into four patches. I'm happy to take them via the RISC-V tree (with an Ack from for the arch/arm/ stuff), but not all together.
It looks like csky copied this as well, they at least have exactly the same message.