Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1037783ybt; Wed, 8 Jul 2020 19:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQmmZIPVx17w0cR4EyEd8G6n/tBfuAa2iJcY5UpTYh4ber063TVATE+dujm/nrz9WtCpwX X-Received: by 2002:a05:6402:2211:: with SMTP id cq17mr45263186edb.95.1594260515132; Wed, 08 Jul 2020 19:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594260515; cv=none; d=google.com; s=arc-20160816; b=QxL/0ZaxtHNjNuZeLIP3kP82pa1i0TfHFG5LfEnVlrsaYGkC3eHwDTvzrjAie7gWsV 7cFbRUDQIEUHGrAFCP+gcikBBpcAkg3zEsFY4hSCbb+3JJuZ88gv3dCczHDzsbQ5orP6 RcFoz7kw5eCDFNvl43fnnI8yWvdY6F+BG6qwTfDwlZyj7QZeH4bV10EU6RcRpiihWAi2 tjQP+n/RCWHCEWHDPeDuavKtC7C2ckUuXnbyLj69ONkww9b/BZ8kgV4coy3iq2y7tG3b VXIleUzyPacG69ygtRoF576ExsBo8icqnkK0bpv/IoJdWoFx22oK3TLI+x22pDLiPjdm G7fw== 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=1xilLRjKDaR+xQLZlsFHssceX8li8HFUZG5a1GO0BlE=; b=zE4ViMtUyBmcJLgnkKlT1zmDazlo9gWE/ahjvg2n8LO8WCc0tC2e6pbs2ioWz+tc6q wdYDwEvilS7J//f8cJWtx4R2aXhZuaA3m0mlaBCzFwkAACdhloY2mVd0SdrI/E1uxXHp zCqEGyf44mo5WcqSufsNCuJsIpewb5B64dDwpwUosETp6TL41zzBKQJ/CsPGj10O0zoP CUOEUBrS3o5zugI9lpFV236qsRR623w4tZVJG+1lR3jlhJzbmDUZk2GKcJBsR0hK254K xrWpC1pQIeF6DUuC9vFxUawwm0FWgrlXmW7fbBKNVM/BsL4RoEfGV+Tf5jv+ck0vZE+c 5VJg== 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 v18si1089351edy.249.2020.07.08.19.08.12; Wed, 08 Jul 2020 19:08: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 S1726297AbgGICH1 (ORCPT + 99 others); Wed, 8 Jul 2020 22:07:27 -0400 Received: from foss.arm.com ([217.140.110.172]:52578 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgGICH0 (ORCPT ); Wed, 8 Jul 2020 22:07:26 -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 DBAFD11B3; Wed, 8 Jul 2020 19:07:25 -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 8F9EA3F887; Wed, 8 Jul 2020 19:07:16 -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 4/6] mm: don't export memory_add_physaddr_to_nid in arch specific directory Date: Thu, 9 Jul 2020 10:06:27 +0800 Message-Id: <20200709020629.91671-5-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 a general version of __weak memory_add_physaddr_to_nid implemented and exported , it is no use exporting twice in arch directory even if e,g, ia64/x86 have their specific version. This is to suppress the modpost warning: WARNING: modpost: vmlinux: 'memory_add_physaddr_to_nid' exported twice. Previous export was in vmlinux Suggested-by: David Hildenbrand Signed-off-by: Jia He --- arch/ia64/mm/numa.c | 2 -- arch/x86/mm/numa.c | 1 - 2 files changed, 3 deletions(-) diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c index 5e1015eb6d0d..f34964271101 100644 --- a/arch/ia64/mm/numa.c +++ b/arch/ia64/mm/numa.c @@ -106,7 +106,5 @@ int memory_add_physaddr_to_nid(u64 addr) return 0; return nid; } - -EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); #endif #endif diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 8ee952038c80..2a6e62af4636 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -929,5 +929,4 @@ int memory_add_physaddr_to_nid(u64 start) nid = numa_meminfo.blk[0].nid; return nid; } -EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); #endif -- 2.17.1