[PATCH v2] initramfs: Provide a common initrd reserve function

Kefeng Wang wangkefeng.wang at huawei.com
Fri Jan 15 00:44:42 EST 2021


On 2021/1/15 10:33, Palmer Dabbelt wrote:
> On Wed, 13 Jan 2021 18:33:58 PST (-0800), wangkefeng.wang at huawei.com 
> 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 at intel.com>) 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.

Send v3, according to the suggestion,thanks.




More information about the linux-arm-kernel mailing list