Re: [PATCH v3 3/6] sh/mm: use default dummy memory_add_physaddr_to_nid()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Jia He <justin.he@xxxxxxx>
- Subject: Re: [PATCH v3 3/6] sh/mm: use default dummy memory_add_physaddr_to_nid()
- From: Pankaj Gupta <pankaj.gupta.linux@xxxxxxxxx>
- Date: Tue, 21 Jul 2020 05:23:08 +0200
- Cc: Catalin Marinas <catalin.marinas@xxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>, Rich Felker <dalias@xxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, David Hildenbrand <david@xxxxxxxxxx>, x86@xxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Baoquan He <bhe@xxxxxxxxxx>, Chuhong Yuan <hslester96@xxxxxxxxx>, Mike Rapoport <rppt@xxxxxxxxxxxxx>, Masahiro Yamada <masahiroy@xxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-nvdimm@xxxxxxxxxxxx, Linux MM <linux-mm@xxxxxxxxx>, Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>, Kaly Xin <Kaly.Xin@xxxxxxx>
- In-reply-to: <20200709020629.91671-4-justin.he@arm.com>
- References: <20200709020629.91671-1-justin.he@arm.com> <20200709020629.91671-4-justin.he@arm.com>
> After making default memory_add_physaddr_to_nid in mm/memory_hotplug,
> there is no use to define a similar one in arch specific directory.
>
> Signed-off-by: Jia He <justin.he@xxxxxxx>
> ---
> arch/sh/mm/init.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
> index a70ba0fdd0b3..f75932ba87a6 100644
> --- a/arch/sh/mm/init.c
> +++ b/arch/sh/mm/init.c
> @@ -430,15 +430,6 @@ int arch_add_memory(int nid, u64 start, u64 size,
> return ret;
> }
>
> -#ifdef CONFIG_NUMA
> -int memory_add_physaddr_to_nid(u64 addr)
> -{
> - /* Node 0 for now.. */
> - return 0;
> -}
> -EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
> -#endif
> -
> void arch_remove_memory(int nid, u64 start, u64 size,
> struct vmem_altmap *altmap)
> {
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@xxxxxxxxx>
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]