Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp212603ybh; Mon, 20 Jul 2020 14:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwALZE/6RPEQmWH80J8y0KtdCe4Snm8FANMbCapKLdyDKsXG64RaJtKrBBkdMcY7HBn1Ej3 X-Received: by 2002:a05:6402:1346:: with SMTP id y6mr23872021edw.192.1595281475361; Mon, 20 Jul 2020 14:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595281475; cv=none; d=google.com; s=arc-20160816; b=X5H2oZkaq3qoeJsSogtSaUkCVJounpQJ6+RZLPWfaLI2F6gWoBL+O2/E/U+JDnSIPM zwwH5Xm94TpfboU79s7geJvD2y8Wm2V23mq91OsQVpIsPQs4xSZK6B0VNxtolY4I6wdl RenhLzPZqNp9INISE+MZItEk0+2+CZ7KMC1SVwTVTTTVeofIyjwJnIITRRA6wpO5Qwl0 +kPqbtjx/aAC7VI1duJ+aINsfXyKNEpvirUOn8wjnow61XYGg76JqnBBBVDt/vFdLZVU QDG5j4Y9FlB9JjAQHwW1jDpvabWU4lCAIGsHu0RhYYYMksHri0Bdap1m3P+CUWBmXlJC +7Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZVjdZV/eWYBorvR1tVhSzEwopMPAvdmiUY2kKFAiZKI=; b=IoB/k1fVEkABnpNR8JJJoa5x7doDIi0CGHDqNyTEUjz55qfv+l5hIbHOAWLYO2WpGw PG74yT+MU3fJAEqQa+Ed1IaAoNZaeYe4srmn5Jft1tk7LjWoWMAYdKsnT8kimx7i9n5U t093hVZVKLcRkF4WrTiO5n48+bsTN95GK9PviTt3Aq0lQN1kngP11pZR6wS74UOHTKkM gdN+LYgptpSVLEO45j8MWadKX2Vf6iuqE7CfJFX6FY1pZSr190nmYziAFiZbqabHonCB Bvx3IFvtXcsOj3JO4vUwn4jNXrqlpGchNiue3Op705+CJ6r0PgqJrwswmYN+GHdQPxaK ndbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si11538708eji.327.2020.07.20.14.44.12; Mon, 20 Jul 2020 14:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728800AbgGTVlz (ORCPT + 99 others); Mon, 20 Jul 2020 17:41:55 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:34428 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728403AbgGTVjQ (ORCPT ); Mon, 20 Jul 2020 17:39:16 -0400 Date: Mon, 20 Jul 2020 17:39:13 -0400 From: Rich Felker To: David Hildenbrand Cc: Jia He , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Yoshinori Sato , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Dan Williams , Vishal Verma , Dave Jiang , Andrew Morton , Baoquan He , Chuhong Yuan , Mike Rapoport , Logan Gunthorpe , Masahiro Yamada , Michal Hocko , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, Jonathan Cameron , Kaly Xin Subject: Re: [PATCH v3 3/6] sh/mm: use default dummy memory_add_physaddr_to_nid() Message-ID: <20200720213913.GM14669@brightrain.aerifal.cx> References: <20200709020629.91671-1-justin.he@arm.com> <20200709020629.91671-4-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 09, 2020 at 11:10:36AM +0200, David Hildenbrand wrote: > On 09.07.20 04:06, Jia He wrote: > > 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 > > --- > > 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: David Hildenbrand Acked-by: Rich Felker