lkml.org 
[lkml]   [2020]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] MIPS: Remove unused BOOT_MEM_INIT_RAM
From
Date


在 2020/9/12 9:59, Youling Tang 写道:
> Commit a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") left
> the BOOT_MEM_INIT_RAM unused, remove it.
>
> Signed-off-by: Youling Tang <tangyouling@loongson.cn>
> ---
> arch/mips/include/asm/bootinfo.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
> index 147c932..39196ae 100644
> --- a/arch/mips/include/asm/bootinfo.h
> +++ b/arch/mips/include/asm/bootinfo.h
> @@ -91,7 +91,6 @@ extern unsigned long mips_machtype;
> #define BOOT_MEM_RAM 1
> #define BOOT_MEM_ROM_DATA 2
> #define BOOT_MEM_RESERVED 3
> -#define BOOT_MEM_INIT_RAM 4

If you're willing to remove that you'd better turn the memtype struct
into a enum.

Btw: It seems you've done a lot of minor clean-up works recently,
if you'd like to I think you can try to turn all the platforms into memblock
and remove all these gules between memblock and legacy code.

Thanks.

- Jiaxun

> #define BOOT_MEM_NOMAP 5
>
> extern void add_memory_region(phys_addr_t start, phys_addr_t size, long type);

\
 
 \ /
  Last update: 2020-09-14 06:36    [W:0.051 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site