Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1312549yba; Thu, 4 Apr 2019 08:20:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbVD6PPdR5KfTZTVbNBnCUT14/O9KdVFx/pDiQ3rrN9ICshIeyRFEfaroKfQGvysPzSoF3 X-Received: by 2002:a65:420b:: with SMTP id c11mr6528724pgq.24.1554391247230; Thu, 04 Apr 2019 08:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554391247; cv=none; d=google.com; s=arc-20160816; b=LcA1WbVhb8zkYS8y9YLRAri0OiH8E0hGjtmhlNNmB94MFD4WhZhRJBCpAZMrorfwVs 1BTuRABvicVCNYWsFTM3NKN4LNdH8HsTq4CjLZXDIhnffb1Y/VixA/GbM1vSb2z9hbnD wwqTS1NEGTUKl37wRFQBKVgKqvzpSqFEGWPoC+6/dV2meLT1OXmj7KiW/u3j3wTognID eIkaohps/+XUOfwRq15S75N7+aU8R+DHpUF1bS+gaDdQe+dY5Dm0iltmjSst+6dRgtXm z8I1qB5itGbW2pGyjfWcPH0Vfr0V5ragGZftrQuIwZYOhwMzpakpPuXF1rUy8/dYnESu 0x0Q== 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; bh=eP/pOczulQ965yyb7igfPO2dHeuTxmiNDDMd/7iFvaQ=; b=fhZ5RaXezfcYKRN8y6REzhd3oTjBHXUlCsQLvjEfPF+76dwjtKutQpIwi5a+U+O/we AgrDQWY6ornIp+Qzq80E34EDO1ogP6kvvXvq3AioJGH5BgGMDGCZSQt54e+yiSbAvzcq UrbijJubUKCDcIwlsdTiuaKwDgNU6uYhXd+qnSyHcyns5nWvEi/GVZP1jkDqk8doatTb OUU7jVIMPEsvcfKUmSkwS1fAVqxshGfAKwm2WR0c63Fa1BGcWNG1bNoICltVXGcqW92J GE5ruDf9l5xUS6ZEew6mnmDS0HpLqXYDqEpohh6PMb9xKWyvhM7M/n4FxJH8GtQlH3ky Hy3g== 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 a5si16359014pff.39.2019.04.04.08.20.31; Thu, 04 Apr 2019 08:20:47 -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 S1728921AbfDDPT1 (ORCPT + 99 others); Thu, 4 Apr 2019 11:19:27 -0400 Received: from charybdis-ext.suse.de ([195.135.221.2]:19580 "EHLO suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726694AbfDDPT1 (ORCPT ); Thu, 4 Apr 2019 11:19:27 -0400 Received: by suse.de (Postfix, from userid 1000) id CB30D481E; Thu, 4 Apr 2019 17:19:25 +0200 (CEST) Date: Thu, 4 Apr 2019 17:19:25 +0200 From: Oscar Salvador To: Anshuman Khandual Cc: Robin Murphy , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, akpm@linux-foundation.org, will.deacon@arm.com, catalin.marinas@arm.com, mhocko@suse.com, mgorman@techsingularity.net, james.morse@arm.com, mark.rutland@arm.com, cpandya@codeaurora.org, arunks@codeaurora.org, dan.j.williams@intel.com, logang@deltatee.com, pasha.tatashin@oracle.com, david@redhat.com, cai@lca.pw, Steven Price Subject: Re: [PATCH 2/6] arm64/mm: Enable memory hot remove Message-ID: <20190404151923.2zmf25wnwevb3dlh@d104.suse.de> References: <1554265806-11501-1-git-send-email-anshuman.khandual@arm.com> <1554265806-11501-3-git-send-email-anshuman.khandual@arm.com> <55278a57-39bc-be27-5999-81d0da37b746@arm.com> <20190404115815.gzk3sgg34eofyxfv@d104.suse.de> <0c2b5096-a6df-b4ac-ac3b-3fec274837d3@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c2b5096-a6df-b4ac-ac3b-3fec274837d3@arm.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 04, 2019 at 06:33:09PM +0530, Anshuman Khandual wrote: > Sure. Will remove them from the proposed functions next time around. Just need to make sure that the function is not calling directly or indirectly another __meminit function, then it is safe to remove it. E.g: sparse_add_one_section() is wrapped around CONFIG_MEMORY_HOTPLUG, but the __meminit must stay because it calls sparse_index_init(), sparse_init_one_section() and sparse_mem_map_populate(), all three marked as __meminit because they are also used out of hotplug scope, during early boot. -- Oscar Salvador SUSE L3