From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbdGYLPu (ORCPT ); Tue, 25 Jul 2017 07:15:50 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:31471 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751001AbdGYLPt (ORCPT ); Tue, 25 Jul 2017 07:15:49 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="21781354" Subject: Re: [PATCH v2] mm: Drop useless local parameters of __register_one_node() To: Michael Ellerman , , , References: <1498013846-20149-1-git-send-email-douly.fnst@cn.fujitsu.com> <87d18o7uie.fsf@concordia.ellerman.id.au> CC: David Rientjes , Michal Hocko , From: Dou Liyang Message-ID: <96d20c3c-8f4f-416e-edb7-7bc36fc3827b@cn.fujitsu.com> Date: Tue, 25 Jul 2017 19:15:42 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <87d18o7uie.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 2832046B5B80.A71BA X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, At 07/25/2017 05:09 PM, Michael Ellerman wrote: > Dou Liyang writes: > >> ... initializes local parameters "p_node" & "parent" for >> register_node(). >> >> But, register_node() does not use them. >> >> Remove the related code of "parent" node, cleanup __register_one_node() >> and register_node(). >> >> Cc: Andrew Morton >> Cc: David Rientjes >> Cc: Michal Hocko >> Cc: isimatu.yasuaki@jp.fujitsu.com >> Signed-off-by: Dou Liyang >> Acked-by: David Rientjes >> --- >> V1 --> V2: >> Rebase it on >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm >> >> drivers/base/node.c | 9 ++------- >> 1 file changed, 2 insertions(+), 7 deletions(-) > > That appears to be the last user of parent_node(). Oops, yes, it is the last one. > > Can we start removing it from the topology.h headers for each arch? > Yes, I think so. Thanks, dou. > cheers > > >