Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1037563ybt; Wed, 8 Jul 2020 19:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyin/r+PGzd8lVoJrqNTynhujMmfWZxzbzNIfeYlteDdkndYwy/zHXYtrRgQy2F/NJs0Rcb X-Received: by 2002:a05:6402:1246:: with SMTP id l6mr38761100edw.224.1594260486973; Wed, 08 Jul 2020 19:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594260486; cv=none; d=google.com; s=arc-20160816; b=pZco5NiqbLevJG53RJWbpLcAQPwMREU5Q8TESM8w1HYtRjCZMsfIQRwjex5ZKStJVp DAAckLs1Q4+FIryJ12tdDwCro0zUfr7nf27r+HPrZO5QdNkbXGLvBFZA6zeP22PbhjcN aPPgThUn+35YFpFu+cevgQrc6krOkheSilVuxfIfig3XoTC90pA3jk+hlWFEc2oBvbXU wtQUTWzPKM4UH4HcJFc5jIvj+dyyxdIquV9FOuU0cAJkhR3HyECdKIUL9N3kfghqXteb WliEsIE3JdhrdvYaYIjgwdAUT2AyneL2nUcO6cn6+p7hISR84b7/ghibJAgcXDb0TGQH y+CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=7+wn9b+C+u3YaPILO4NFR6MnuQi+iWi56UJCtbwMTTg=; b=SQOTrkEJgcAlndbanUqVUVVgNONr8zWZc3mnml9OmZKCPaNcxhGkwLgiZfOiHDjzTV tTOsfnGvYi/LtKBcBPd5p/mam9lb3WVsoh8Jpor4hmcaGa+rDMjXf1mr5ONHLvIT71i0 rv1ctRY5QNzPBowESQjlY8A+wuZ3Jwk7bvUkE+Hmr9rTSGT2glssRJB7l8Wi02eCkVqi JAzAqwZsPl7sysNbZZP26Kep4X5INlaGHPIiHA+CC89PiPa38xpQ6C6Vqtp9K7XuZzMv /aNhRvdIfwaCXfxMrPTk1AHHeUBc6rBVs0BJtObOKxQ9d48WjUnkmErNNgiuwvb4dqm3 3dZA== 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 l13si1029421ejk.170.2020.07.08.19.07.43; Wed, 08 Jul 2020 19:08:06 -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 S1726281AbgGICHR (ORCPT + 99 others); Wed, 8 Jul 2020 22:07:17 -0400 Received: from foss.arm.com ([217.140.110.172]:52520 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgGICHQ (ORCPT ); Wed, 8 Jul 2020 22:07:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F600106F; Wed, 8 Jul 2020 19:07:16 -0700 (PDT) Received: from localhost.localdomain (entos-thunderx2-02.shanghai.arm.com [10.169.212.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B6DBF3F887; Wed, 8 Jul 2020 19:07:06 -0700 (PDT) From: Jia He To: 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 Cc: 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 , Jia He Subject: [PATCH v3 3/6] sh/mm: use default dummy memory_add_physaddr_to_nid() Date: Thu, 9 Jul 2020 10:06:26 +0800 Message-Id: <20200709020629.91671-4-justin.he@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709020629.91671-1-justin.he@arm.com> References: <20200709020629.91671-1-justin.he@arm.com> 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) { -- 2.17.1