From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 120B5C433F5 for ; Thu, 24 Mar 2022 09:05:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7CB0C6B0072; Thu, 24 Mar 2022 05:05:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 77A996B0073; Thu, 24 Mar 2022 05:05:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 669946B0074; Thu, 24 Mar 2022 05:05:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 5641C6B0072 for ; Thu, 24 Mar 2022 05:05:01 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 36B9060917 for ; Thu, 24 Mar 2022 09:05:01 +0000 (UTC) X-FDA: 79278695202.01.487DE66 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by imf05.hostedemail.com (Postfix) with ESMTP id 5006A100033 for ; Thu, 24 Mar 2022 09:05:00 +0000 (UTC) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nXJOs-0002LV-01; Thu, 24 Mar 2022 10:04:58 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 40811C2ECE; Thu, 24 Mar 2022 10:04:43 +0100 (CET) Date: Thu, 24 Mar 2022 10:04:43 +0100 From: Thomas Bogendoerfer To: Michal Hocko Cc: kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Oscar Salvador , Andrew Morton , Linux Memory Management List , linux-mips@vger.kernel.org Subject: Re: undefined reference to `node_data' Message-ID: <20220324090443.GA5375@alpha.franken.de> References: <202203232042.AS9SV1zv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=none; spf=none (imf05.hostedemail.com: domain of tsbogend@alpha.franken.de has no SPF policy when checking 193.175.24.41) smtp.mailfrom=tsbogend@alpha.franken.de X-Stat-Signature: xy3qg3hb5f9kp3sed6gy3doi8emoehkt X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 5006A100033 X-HE-Tag: 1648112700-904323 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000085, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Mar 23, 2022 at 05:46:59PM +0100, Michal Hocko wrote: > > > If you fix the issue, kindly add following tag as appropriate > > > Reported-by: kernel test robot > > > > > > All errors (new ones prefixed by >>): > > > > > > mips64-linux-ld: mm/page_alloc.o: in function `free_area_init': > > > >> (.init.text+0x1680): undefined reference to `node_data' > > > mips64-linux-ld: (.init.text+0x1690): undefined reference to `node_data' > > > > OK, I can see what is going here. The page allocator normally > > uses NODE_DATA but arch_refresh_nodedata refers to node_data directly. > > This is a problem with > > arch/mips/include/asm/mach-loongson64/mmzone.h: > > extern struct pglist_data *__node_data[]; > > > > #define NODE_DATA(n) (__node_data[n]) > > > > Unfortunately we cannot use NODE_DATA there because of header inclusion > > ordering. I will think about a solution. > > Is there any reason why (some?) MIPS arches use __node_data rather than > node_data as most other architectures? Would it be acceptable to do the > renaming? It would help to cover the above compilation problem because > arch_refresh_nodedata could keep using node_data directly. I've just checked history and I don't see a reason for __node_data. So I'm fine with changing it to node_data. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]