Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp947394pxb; Thu, 24 Mar 2022 09:46:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJhjcWzefIhLb4IDv/yNevYBVPzlM3CnvgdyMYLPnw+mlW/gOcqVmItd+e9siciteuFeBF X-Received: by 2002:a65:56cb:0:b0:378:82ed:d74 with SMTP id w11-20020a6556cb000000b0037882ed0d74mr4696984pgs.491.1648140388970; Thu, 24 Mar 2022 09:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648140388; cv=none; d=google.com; s=arc-20160816; b=V3t3Wu2XShrsX1DI1Oh2ud9Er6DdKBLdRZpNIAABIGufTIQ7pnJLcQApgP76tiwgMF acLI3gjBQ+Y7ge3UoBAhvBnvz6GUCyK5MtdYEUXcv20YJV/SEBXz9rUQAjWYWBzpFn10 dPSdOp2Z671ddSUTG/JefIVJ55wj15r8iuH8QvibcaAxfUmE1s6fFdSuPOTQBKJnTJMY ZDA9wbS+t4seUYIuv3KsxGFS9um7qrh2ZqeJZgB4X0hKhnTvpslbsZs7k7a7koTks6nk TVSnCLo3yaR5m0+pIRZVxvAT2O4iwFjrQzL/O/Ht/BlFn6kjIv7I4YL+3zSPkIF8KKxY KCuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vlIC0nDTYxHuwnU5lFTAtAm7e/+yWqtExFktEth/xk0=; b=FYkik1Jw9vs3f/jQf52OnOJQ9+TT5gZ5BLxjIUfJLn7BQzNSQEC8j4SNQt8Wvz4U0q VE8ilw8zxKuW7+dhcaz/BDSxw1AkYlIzTfzKUiqkUxbji2gw7ZdZKBzbgiAHKpJlAOQt vfRWEggndr1JydGE+32LXOZs6hRv1KJTs8Wd4DQklgDNovwFFHoVQMMSK0UR+V66TpOb uPb1Z4Ww02ieCWyqkeblanmz8GnjnUXgC1h8tMIFllC8NzoFCs8KpXAH7MbwYDJWT302 mbaJ+WnCJex3cjZLDMbX+qmUaChdAxwskxjGxHN28gqUAJdUI6CLsXyuw3MwEDW+nKIG c+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qAJCNEhQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh2-20020a056a02020200b003816043f177si8514612pgb.876.2022.03.24.09.46.13; Thu, 24 Mar 2022 09:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qAJCNEhQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244896AbiCWOzD (ORCPT + 99 others); Wed, 23 Mar 2022 10:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiCWOzC (ORCPT ); Wed, 23 Mar 2022 10:55:02 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E01DBE13 for ; Wed, 23 Mar 2022 07:53:32 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 28DD01F38D; Wed, 23 Mar 2022 14:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648047211; 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=vlIC0nDTYxHuwnU5lFTAtAm7e/+yWqtExFktEth/xk0=; b=qAJCNEhQoFdjQDbI9SqmBv12G3f5ai4nerQjAhTOdLzT/DNgSzLK67yH3SwS9pOomTJI1F 2Rpr/7NdJ6UZ7cAJdyQSRtPqFUSr4h75FyoxES/Ff2al62Iu/juW+zTNq9OLqojW/GAmJ3 WWt/nQbPxG3gXv0N4P+4+VVeOzjeV64= 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 DDA96A3B83; Wed, 23 Mar 2022 14:53:30 +0000 (UTC) Date: Wed, 23 Mar 2022 15:53:30 +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 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: <202203232042.AS9SV1zv-lkp@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks for the report -- Michal Hocko SUSE Labs