Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2158312pxb; Fri, 25 Mar 2022 12:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7rK6B7ZpDTvuXac/fgRCEMzle4kkQgduCg+mzTBU7N6arDexEPYbRis47jRQXow36249j X-Received: by 2002:a63:4421:0:b0:385:d870:d598 with SMTP id r33-20020a634421000000b00385d870d598mr783276pga.361.1648235259195; Fri, 25 Mar 2022 12:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235259; cv=none; d=google.com; s=arc-20160816; b=l9qQHy7LwBsL7/7yJPCBRT65ta9iIz7PK67fbQjlQXYfiXz0BtXgma7YW76Zr4xtKu 4udS4qr6/+29H2x845T70uZcoVIfOPAelS6mxD6HYCyb2koQ6f8OVC1clldqaTLoPjJg Mbe8AvFbgJjHR+pyXDZMIDscQqt1mx/2rrLdspECVUP8y4nr90ArCDr2Jods1n5QZxNp 465UaoLLFVTfZYVUSwn0ZtKmcVsa2znkfhiuEe9tQHzPXLLntm9vlwEI6+l4h0FfRJAM 344nvHODSTeBOHHckG6pIq67pX/89wWlO5JywYyBapT3teuoosj4pvJqenxqiSl0yIfp SIzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qj0JwYH4dpS2XLgrwFYBjIw9mvhwVEqN4zVE8I4ySlU=; b=EUS7nKfEsddXIUJ+B8ZRhIoNbDMHdEXKyVfG/bKJ+9WFpsrsk21CVc4q/5pSzVNCrg VfeIBxSKTxv/pUQwsnlunWquQvaf/X1TEPutzHTa6AHeEL8wnaMfqc8ym60OPiSOQHsB jLTMldxQLH+cWvaePcSG/fi5m7Jm7WKvFVVhnycqX1fC0cEM1BmtpnsNRb2hIbHP+ojm 9tsUACgFrjOEfu/uNRQZvOZ3HAXa8L+/K+DqPPwrKO5D4dD4sV/4P5CR8lNTOd0rQa0c 6JMg1L5RjW6rKNG/YNpHJFKxrQNYGwKACBy4qrdUbeHxwKwGfqBpAepsEZb2VGZ+9h33 Bxsg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j68-20020a625547000000b004fa7ffb7267si3376308pfb.102.2022.03.25.12.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:07:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4733121A885; Fri, 25 Mar 2022 11:18:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349111AbiCXJGd (ORCPT + 99 others); Thu, 24 Mar 2022 05:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238929AbiCXJGc (ORCPT ); Thu, 24 Mar 2022 05:06:32 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9FE19D0E2; Thu, 24 Mar 2022 02:05:00 -0700 (PDT) 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 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 ]