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 B7BEDC433F5 for ; Wed, 23 Mar 2022 16:47:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1E8446B0072; Wed, 23 Mar 2022 12:47:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 196EF6B0073; Wed, 23 Mar 2022 12:47:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0386E6B0074; Wed, 23 Mar 2022 12:47:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id E8EEB6B0072 for ; Wed, 23 Mar 2022 12:47:02 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 6074361B6B for ; Wed, 23 Mar 2022 16:47:02 +0000 (UTC) X-FDA: 79276230684.09.95E38E6 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf06.hostedemail.com (Postfix) with ESMTP id E998C180011 for ; Wed, 23 Mar 2022 16:47:01 +0000 (UTC) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 9A1EE1F388; Wed, 23 Mar 2022 16:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648054020; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9/+VETRFO5PTDlIzRRIClit3aflm+jce01s1gMGXpJ0=; b=d6YPUKTB90VFKRJsQKtU90s/POZJMVD6N8/rJjk0XqcFyWq2KZ/91hGBjGy2q7DBrUxvts jvTunoqsZacd1/hsxbIKQtv8vD4XqTf998EGySEXbusFh7a5b2n4sfL9s2NITMvc2bTWKh o+9AJZePH2hFO9f1TzFGhVE/DLf0bb8= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 683C3A3B83; Wed, 23 Mar 2022 16:47:00 +0000 (UTC) Date: Wed, 23 Mar 2022 17:46:59 +0100 From: Michal Hocko To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Oscar Salvador , Andrew Morton , Linux Memory Management List , Thomas Bogendoerfer , linux-mips@vger.kernel.org Subject: Re: undefined reference to `node_data' Message-ID: References: <202203232042.AS9SV1zv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: E998C180011 X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=suse.com header.s=susede1 header.b=d6YPUKTB; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (imf06.hostedemail.com: domain of mhocko@suse.com designates 195.135.220.29 as permitted sender) smtp.mailfrom=mhocko@suse.com X-Stat-Signature: 79dbbutp67x9axro8zqyteeky14b9nai X-HE-Tag: 1648054021-798679 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Let me CC MIPS maintainers On Wed 23-03-22 15:53:31, Michal Hocko wrote: > On Wed 23-03-22 20:58:10, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 6b1f86f8e9c7f9de7ca1cb987b2cf25e99b1ae3a > > commit: 09f49dca570a917a8c6bccd7e8c61f5141534e3a mm: handle uninitialized numa nodes gracefully > > date: 14 hours ago > > config: mips-buildonly-randconfig-r004-20220323 (https://download.01.org/0day-ci/archive/20220323/202203232042.AS9SV1zv-lkp@intel.com/config) > > compiler: mips64-linux-gcc (GCC) 11.2.0 > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09f49dca570a917a8c6bccd7e8c61f5141534e3a > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 09f49dca570a917a8c6bccd7e8c61f5141534e3a > > # save the config file to linux build tree > > mkdir build_dir > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash > > Didn't work for me > > > > 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. Thanks! -- Michal Hocko SUSE Labs