Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp393398ybh; Mon, 20 Jul 2020 20:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxogqmUUkR9UkYOkxZ4+SNX1WPC8nQ9E76LKydvoRghcWD1hMwSBNeIVl8lDKqG/YTaBmBb X-Received: by 2002:a17:906:2e83:: with SMTP id o3mr23711088eji.261.1595301911079; Mon, 20 Jul 2020 20:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595301911; cv=none; d=google.com; s=arc-20160816; b=KBdVAS8yBOEw7LJt/OLarRENJRMnGm4hrttbX0Fgrs9oZ7ja1zVe5mzp1/8GQLuyKP wrX9zKDNPVh8oMQISjiR/UHwghRRHsTjXp+Al6nVhfqfuuiQB2AuZ4ckp7Al1s7y5unN IDALxTGp0uJP7PCha1E/X/H9rN+WrI5CqK+5YTx3pPUARRm/wYsLvxmV5cNRY6KG/aMD PRQaEA9ljaS8czl7PyuOkdEnPhUIyUdPQLZbNcaxlA84JCWuo1+maPcvSmJRMmj3FuPT zUn/Y+pZKFoXMgaB7nxzkTehglg3/Qn+tYau4DnAQ2GfH5Jj7678nm1cTrl1uqv1tWnp 3SkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Vy/t34kGa+AL0KVS5scjg7XYMyIm/b9u03KSFMBJSXw=; b=OFcCTSTiwSbIDtWXYsapK0NACNxUEegHH9I59Kp/iGvdewhHKrl5QHSpASoo5WzI/2 wKtj7T3r0339sllDEmMYJy7UyrtQx6S+D/D12tjQ5nN/kVFSRtZ8byqq4lTozjo8S1P2 sAkb4QALuNvb++ZEfkfJZdxxOXfySHWGyVXr3w51VWF3q9YVffLP2lcnDT+F2/EiXEfY QcZKmLsQLU2mVtBoiF/RPZ8fw/bsMErg2kAbvAYpi6VekIo4DIleQn5SeUtdbeOFjZQr CWT8Z0FEaO0zpMNgW9Mijj4cJTEepf5yOH0v9Mp9uWvNF3X71ATFkx5v0+YoBOy5lNe4 qSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e5h641+M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si11056299ejc.678.2020.07.20.20.24.48; Mon, 20 Jul 2020 20:25:11 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e5h641+M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728642AbgGUDXV (ORCPT + 99 others); Mon, 20 Jul 2020 23:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgGUDXU (ORCPT ); Mon, 20 Jul 2020 23:23:20 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8DB3C061794; Mon, 20 Jul 2020 20:23:20 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id o3so15149633ilo.12; Mon, 20 Jul 2020 20:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vy/t34kGa+AL0KVS5scjg7XYMyIm/b9u03KSFMBJSXw=; b=e5h641+MTFpVytkoYyEBT4W0KfC6V02/Z7w3+CKkJAly6R0JfqLQaCO0C7qq3km8Wb WFDVdCc+hEhqY+nS4HFLOvKt9R07H5PBFgzLDAelPS00zA9xMjj/Ih3pNbOYAbJrIhPC Gck4m85PrjCgtsTuHQJGL2piphuPT+S7wSsvo8nkiY+ut+DqE2TREJXRiAPn//n8NWEk 2ZjDXsGBtILiF7AcQoM9O+jhNE6e6dNiHDu9rpIxyw2sm2l/JyKflj0skGlvEuTsINQF Jt6rXMIQL3mPqZaXXRWmWnAASVK++i/79at+NWr9oDK1QgLvnlc6R5qYVw+XjfbnJeTh wL7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vy/t34kGa+AL0KVS5scjg7XYMyIm/b9u03KSFMBJSXw=; b=dIB4ppbtPAiaZEanSAMa7dpZ0NAou46pxjj5671zSg9in/1ilO3ImtpjAn/+oqF4fo RTCB2/46x7Z7qVQ/iFh33WIGYpGS89LKyNytA72S26bwNcdgG4hl/PMs4uQmLFBVirj4 vUPjT930oRYM3J1GDya7WlLO5tXq0AkmGe4Nm8FND69RZPdtrBh5Acf15r1ucgVXuBNc Zobvu58609Cp6ESpP9Rq3erASFZcStzzIYLP7PJIB/RgvlO8dvUU+9zI/I9voRIaxEjn ebZVVWU7Fy0hTEhn1shxKoFmjk1DRQPBRfLryXkmd9Stv3ubwSRVp/CvASu/kz0KpaVJ GjAw== X-Gm-Message-State: AOAM533d5UpNxyG3PQJgZKRyXrqbL6Av7K+cTIIm82kI7yykNCVqOZLh yKRGcn89hBVBpvvznO/aphNdy2u9BG4SjvL+bAs= X-Received: by 2002:a05:6e02:80b:: with SMTP id u11mr27228504ilm.178.1595301800016; Mon, 20 Jul 2020 20:23:20 -0700 (PDT) MIME-Version: 1.0 References: <20200709020629.91671-1-justin.he@arm.com> <20200709020629.91671-4-justin.he@arm.com> In-Reply-To: <20200709020629.91671-4-justin.he@arm.com> From: Pankaj Gupta Date: Tue, 21 Jul 2020 05:23:08 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] sh/mm: use default dummy memory_add_physaddr_to_nid() To: Jia He Cc: Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Yoshinori Sato , Rich Felker , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , David Hildenbrand , x86@kernel.org, "H. Peter Anvin" , Andrew Morton , Baoquan He , Chuhong Yuan , Mike Rapoport , Masahiro Yamada , Michal Hocko , linux-arm-kernel@lists.infradead.org, LKML , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, linux-nvdimm@lists.01.org, Linux MM , Jonathan Cameron , Kaly Xin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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: Pankaj Gupta