Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1041440ybt; Wed, 8 Jul 2020 19:16:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEg/5kmgnOt5Mfg6vo/iw3d0q95MmgSfhxdmfpKDncxxvsXhvI/hfUr1g+DUo3tud0SxvY X-Received: by 2002:a17:906:9348:: with SMTP id p8mr32447941ejw.467.1594261011945; Wed, 08 Jul 2020 19:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594261011; cv=none; d=google.com; s=arc-20160816; b=KW7GAbyho291iUKbPIYCUczOfu/aSNEawQ1BvuACpCoMaA03lFMRjbNL3DsFyDXFmr TpbcV2XFieZmpk0xuMRciq5DlD5XWY0Hg2HQNeFwCXpSpisi+FZskuHzmW+zsXVg6lfI MUPRJ9nCGm3V2Dk0o+/oa1Aprld9REpCsuNSWoCXQybQLehKEdbfh1L7SbHbf8OzdWY6 eT1a36XyKaGn+UI9XmEiO8LaJ5GOj0Vd/lMigXousnM2va8B82iF4nNLv8gRLiOLRoHX NUI7b4Xaw17HVn1UKoqVCdGqCWlqrN4JpReOpBlImQ2hl8XxPR/+1auHrBNEW027Zkb0 y6mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qi5089B5TBHI+zy9mDefYNvDdHyy2eklBkVImsmfAA8=; b=FkiQwRCCKKInpw0CIHih0ako2cU+D3h5JHAmFkK8NoZPeM4+uPnFr47XfwU3BmSiJh CDHLT6Ghh+Vf4g58ocJs9zOYVkBwm/TWRGrtBsgPUwT7OrRMuwa0aW4W5tOZXdI6N3G4 Dl/Z/s83SRbGSe/P0iDbu+mo3juQfjSy9uGFUijmcCqG7HG0QRoKY/T/2U7y7cFdIHlL 5xNu5M0Gm/eJh2P1A5rfBZFMV+jQB26ABhagS7QAjhXBMQEsWYB/xP5IJOFdl8aMi4f1 yXA0h52go0cLkQitSDyGiLfP6tdM+xu6zQ+xbjzHXqg+dEGy1+UHKE3OF+/97RyFUqjM DscQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=XR04+03w; 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 i25si1082491edy.478.2020.07.08.19.16.27; Wed, 08 Jul 2020 19:16:51 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=XR04+03w; 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 S1726245AbgGICNy (ORCPT + 99 others); Wed, 8 Jul 2020 22:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbgGICNx (ORCPT ); Wed, 8 Jul 2020 22:13:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38444C061A0B; Wed, 8 Jul 2020 19:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qi5089B5TBHI+zy9mDefYNvDdHyy2eklBkVImsmfAA8=; b=XR04+03woT3Wc7Z/57jVKd4hjt 3/E+cPTx2AQKCpc/7RreVQxlA9fQYhnyQYvjGihVTwBeUhMvD1az1bE+aXIowHLHsO4PPVi+sxQwA w3nQAbkppGId8GQAhA5vINNi51acayCJgaGvH8tDYh9hhuTWECwDBu6AGIzdVjzzQC3Zgoo+4Dbnz AZjcV2gbkzzZX2ShVFGcqhY1KThJMO/jobs64MREKH5Ezengt4WKDQkr3yw0rrWp+e+/1nIZ1URDR u8M4sp6A3rWRF3TEykU38Xw06lEG6SCF2w3ZwXpgRBaTt6syvQbk7T5XdAmus0UblYhhdytIy8B1y yTszHv4A==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtM1h-0006v4-Cd; Thu, 09 Jul 2020 02:11:06 +0000 Date: Thu, 9 Jul 2020 03:11:04 +0100 From: Matthew Wilcox 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" , 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 4/6] mm: don't export memory_add_physaddr_to_nid in arch specific directory Message-ID: <20200709021104.GZ25523@casper.infradead.org> References: <20200709020629.91671-1-justin.he@arm.com> <20200709020629.91671-5-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709020629.91671-5-justin.he@arm.com> 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 10:06:27AM +0800, Jia He wrote: > 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 It's bad form to introduce a warning and then send a follow-up patch to fix the warning. Just fold this patch into patch 1/6.