Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp147302imm; Thu, 26 Jul 2018 00:39:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeTtf4u8GsBSQhd0AfdLYLPJYZXwHxULwxS6O8/pCdFrOB/9+KVwuZ5ukqV2vtEqS5uiYOZ X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr891940pgg.370.1532590758237; Thu, 26 Jul 2018 00:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532590758; cv=none; d=google.com; s=arc-20160816; b=RR95H2S6nUwFRu/8aOjGQn/1Dq8AhmX2y4tM4y27dbTlxKNIEriBqv71chPNEC5jTc TCiEVXb1tf/+RaCdQEG4fKkDzbLeQLU6txzmL3dQIHJi/leV3hxc+9nc2eXN/V/Ajeb4 jAsHK8xseOdLsL/na/HW3xVHp8BnsmBlnEKZtd1wKNmp2q+TJrulSY3xJfClK1To2eYz gZbiMcv42nowjqpuAu8MFlsleTQwLZByTgrcATAZHAL3qqeOgpbzTsD3w1RXijCKkCNK U7S4abyQcqdt2zjZAWZ8GFLDZm1HqzaUEd1FZkloBIN+cHWqV3+McXUrOof7tJSKinhB IuCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=PjxBw7W9SMaERIJZDXqC+zJFB5dFn0cHmVtuL/Rk3sY=; b=E1XCkYMRuS3uQ0aMEzYNxczodXfPfpi49iHsKnsqi3Lhht7qVyPiRqynGKsTqaaQ+4 30nqnbzXHRvP+AxXZVdT9nuXIAUEUoc9TgWlty92z7OKDYoZdXx4y0o4oIQMnMzQgOAS eX5ntfd1ABOZienLJrnc31P1nVPE0JhF3O7/kBxVUQ8RPtFBSj6/vef71ZhW1FRhpeBZ L3UGJl2gHFbnjvY8OkrcrbJemawE7thNHo2TEsDULBQ93HEczZPr3huUx0nk5vRvb+Vx wplbq2ekwwFM1Y2tA1okLOmwfTlrsy4nQUY88HlzW+w2ktRoihrpdWryjldIO8xQoCoM yPuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si728402pga.480.2018.07.26.00.39.03; Thu, 26 Jul 2018 00:39:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728990AbeGZIxm (ORCPT + 99 others); Thu, 26 Jul 2018 04:53:42 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37514 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728792AbeGZIxm (ORCPT ); Thu, 26 Jul 2018 04:53:42 -0400 Received: by mail-wr1-f68.google.com with SMTP id q10-v6so658546wrd.4 for ; Thu, 26 Jul 2018 00:38:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PjxBw7W9SMaERIJZDXqC+zJFB5dFn0cHmVtuL/Rk3sY=; b=EvIOca+q5uAGsfvfyybn44OfulDsPBePEe3O/89LkNkhrBllLCUqZkXXUtye01+bJd 7xLOkSHb8p33+Z3PY51L7IXcTRGCGYn3LJHXrBLgDLFJgOb5nseQypxJWaRf4yVVRgYs 7Im/WG10ZgBIQjWdiiGQL7qv2LZ+iNrGXQ2P+qM6DT04N0tPGG4elhoOxBIh9us/Ji4h h7+BsRbOp4Rr4VIKn4JvJm+iLyPlHA/Dp4yQSscyQ04/2qBrupMplbFORQMvZ5YH1MX4 ijkYv1RwrrkKbPDNyzAFLh5ldzu/iUVssRLxSMigRjhTm+gfieKtVDxQCs8ASqNEYqVg elrA== X-Gm-Message-State: AOUpUlERNNeFpW0aSr/WpJVXam2MofENZQ01DdoxQGVOcPMyyAIWLsd2 IhezVLZuyLhf3zVMl9UvizxAIQcRZa8= X-Received: by 2002:adf:82f0:: with SMTP id 103-v6mr624091wrc.131.1532590688342; Thu, 26 Jul 2018 00:38:08 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id f6-v6sm1861908wrw.78.2018.07.26.00.38.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 00:38:07 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 30FC6124380; Thu, 26 Jul 2018 09:38:07 +0200 (CEST) Date: Thu, 26 Jul 2018 09:38:07 +0200 From: Oscar Salvador To: akpm@linux-foundation.org Cc: mhocko@suse.com, vbabka@suse.cz, pasha.tatashin@oracle.com, mgorman@techsingularity.net, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, Oscar Salvador Subject: Re: [PATCH v3 5/5] mm/page_alloc: Introduce memhotplug version of free_area_init_core Message-ID: <20180726073807.GA22028@techadventures.net> References: <20180725220144.11531-1-osalvador@techadventures.net> <20180725220144.11531-6-osalvador@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180725220144.11531-6-osalvador@techadventures.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 12:01:44AM +0200, osalvador@techadventures.net wrote: > extern void free_initmem(void); > +extern void free_area_init_core_hotplug(int nid); The declaration should be wrapped with an #ifdef CONFIG_MEMORY_HOTPLUG. > +void __paginginit free_area_init_core_hotplug(int nid) > +{ > + enum zone_type j; > + pg_data_t *pgdat = NODE_DATA(nid); > + > + pgdat_init_internals(pgdat); > + for(j = 0; j < MAX_NR_ZONES; j++) { > + struct zone *zone = pgdat->node_zones + j; > + zone_init_internals(zone, j, nid, 0); > + } > +} The same applies here -- Oscar Salvador SUSE L3