Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1037498ybt; Wed, 8 Jul 2020 19:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVsCFUMqG4kd3yRUwfxwKpz8vBjsPRLOmxOql1cG75V5hLYkgK+quPlfpRuq8YQHfRurm9 X-Received: by 2002:a17:906:a1cc:: with SMTP id bx12mr52337388ejb.461.1594260480307; Wed, 08 Jul 2020 19:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594260480; cv=none; d=google.com; s=arc-20160816; b=zXNYEPfM9ls+WQbO2ynLHGJY8TgI+ngNaRjtnFKfEdoLuzr4+/4ne5p+XJGCkNP4jb tK56jC0WhuQMjpdTWPrPJZclWxg7pmqqJzEB4rzEV2tZfRt41Qx3ofJFiEA3uvfFzoyS ib8QQXEzFiLPmhOIfe0bduPKwRpD4wwLKWMSL5kh9XMR1NW+rfGtH6qxKYIyyZUGKgoe r1Enk/v/yrKiI/vJDxBZTZmUBQLY6Qza1ZVvYqpxsFDnv1w0pG8ayTMQ9XLFFdB2rJIn PCqULkU5bNA6Fl3oF8BrNZWanE/0bp5N/+V/1D3mw2HkFziLGv6Gh/oPKpxSHU4X/J8F jzGw== 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=hE6Cf7IwXLAKXGJ8G3oPDu8rzl4Ffu7WkHHg8Zw8OKM=; b=cpSWiX/tM5rrIuCEI3ybPXgb3ck7mBJg8cwAG+yAlUsg36PGO3ic5xvOy+NMKuf+DK 74xJRv5uC63JG025vwQjK0rjiLIKyHFj1NSIIaP3SBCirLci+qb15aG1nOJZfR8NHWe3 YDxWdVqP4HA/8Z6DzbvyLM2ZD6mu6/s6bBFS/TJRipAKPrtxI6N3JAmg8E+veTnMFICd 3XeM3oNMYs2HMBTXBA8e8f2DEYX3IlEnyqF6b8UhAT+hsT8ytJ8h1pGlRzP6a5eg50wP Viem7bvzgj264DF52wKWjUwRtqy/VhzYc37FUgvjdc84pnkl8r6k+oyxMZnJz86OQzJZ RpLw== 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 mb7si1012629ejb.316.2020.07.08.19.07.30; Wed, 08 Jul 2020 19:08:00 -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 S1726163AbgGICHH (ORCPT + 99 others); Wed, 8 Jul 2020 22:07:07 -0400 Received: from foss.arm.com ([217.140.110.172]:52470 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgGICHG (ORCPT ); Wed, 8 Jul 2020 22:07:06 -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 361E31063; Wed, 8 Jul 2020 19:07:06 -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 DC36D3F887; Wed, 8 Jul 2020 19:06:56 -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 2/6] arm64/mm: use default dummy memory_add_physaddr_to_nid() Date: Thu, 9 Jul 2020 10:06:25 +0800 Message-Id: <20200709020629.91671-3-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, it is no use defining a similar one in arch specific directory. Signed-off-by: Jia He --- arch/arm64/mm/numa.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c index aafcee3e3f7e..73f8b49d485c 100644 --- a/arch/arm64/mm/numa.c +++ b/arch/arm64/mm/numa.c @@ -461,13 +461,3 @@ void __init arm64_numa_init(void) numa_init(dummy_numa_init); } - -/* - * We hope that we will be hotplugging memory on nodes we already know about, - * such that acpi_get_node() succeeds and we never fall back to this... - */ -int memory_add_physaddr_to_nid(u64 addr) -{ - pr_warn("Unknown node for memory at 0x%llx, assuming node 0\n", addr); - return 0; -} -- 2.17.1