Re: [PATCH] MIPS: Loongson fix name confict - MEM_RESERVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Yunqiang

Please rename it to SYSTEM_RAM_RESERVED, thanks.

Huacai

On Sun, Aug 13, 2017 at 8:44 PM, YunQiang Su <syq@xxxxxxxxxx> wrote:
> From: YunQiang Su <yunqiang.su@xxxxxxxxxx>
>
> MEM_RESERVED is used as a value of enum mem_type in
> include/linux/edac.h.
> This will make failure to build for Loongson in some case:
> for example with CONFIG_RAS enabled.
>
> So here rename MEM_RESERVED to LOONGSON_MEM_RESERVED in Loongson code.
> ---
>  arch/mips/include/asm/mach-loongson64/boot_param.h | 2 +-
>  arch/mips/loongson64/common/mem.c                  | 2 +-
>  arch/mips/loongson64/loongson-3/numa.c             | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/mips/include/asm/mach-loongson64/boot_param.h b/arch/mips/include/asm/mach-loongson64/boot_param.h
> index 9f9bb9c53785..595a949e5f47 100644
> --- a/arch/mips/include/asm/mach-loongson64/boot_param.h
> +++ b/arch/mips/include/asm/mach-loongson64/boot_param.h
> @@ -3,7 +3,7 @@
>
>  #define SYSTEM_RAM_LOW         1
>  #define SYSTEM_RAM_HIGH                2
> -#define MEM_RESERVED           3
> +#define LOONGSON_MEM_RESERVED          3
>  #define PCI_IO                 4
>  #define PCI_MEM                        5
>  #define LOONGSON_CFG_REG       6
> diff --git a/arch/mips/loongson64/common/mem.c b/arch/mips/loongson64/common/mem.c
> index b01d52473da8..6c97dbe2cb85 100644
> --- a/arch/mips/loongson64/common/mem.c
> +++ b/arch/mips/loongson64/common/mem.c
> @@ -79,7 +79,7 @@ void __init prom_init_memory(void)
>                                         (u64)loongson_memmap->map[i].mem_size << 20,
>                                         BOOT_MEM_RAM);
>                                 break;
> -                       case MEM_RESERVED:
> +                       case LOONGSON_MEM_RESERVED:
>                                 add_memory_region(loongson_memmap->map[i].mem_start,
>                                         (u64)loongson_memmap->map[i].mem_size << 20,
>                                         BOOT_MEM_RESERVED);
> diff --git a/arch/mips/loongson64/loongson-3/numa.c b/arch/mips/loongson64/loongson-3/numa.c
> index f17ef520799a..3ceb401f7691 100644
> --- a/arch/mips/loongson64/loongson-3/numa.c
> +++ b/arch/mips/loongson64/loongson-3/numa.c
> @@ -166,7 +166,7 @@ static void __init szmem(unsigned int node)
>                         memblock_add_node(PFN_PHYS(start_pfn),
>                                 PFN_PHYS(end_pfn - start_pfn), node);
>                         break;
> -               case MEM_RESERVED:
> +               case LOONGSON_MEM_RESERVED:
>                         pr_info("Node%d: mem_type:%d, mem_start:0x%llx, mem_size:0x%llx MB\n",
>                                 (u32)node_id, mem_type, mem_start, mem_size);
>                         add_memory_region((node_id << 44) + mem_start,
> --
> 2.14.1
>
>




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux