Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1695511 > unrolled thread

Re: [PATCH v2] mm: Drop useless local parameters of __register_one_node()

Started byMichael Ellerman <mpe@ellerman.id.au>
First post2017-07-25 11:10 +0200
Last post2017-07-25 13:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] mm: Drop useless local parameters of __register_one_node() Michael Ellerman <mpe@ellerman.id.au> - 2017-07-25 11:10 +0200
    Re: [PATCH v2] mm: Drop useless local parameters of  __register_one_node() Dou Liyang <douly.fnst@cn.fujitsu.com> - 2017-07-25 13:20 +0200

#1695511 — Re: [PATCH v2] mm: Drop useless local parameters of __register_one_node()

FromMichael Ellerman <mpe@ellerman.id.au>
Date2017-07-25 11:10 +0200
SubjectRe: [PATCH v2] mm: Drop useless local parameters of __register_one_node()
Message-ID<u740N-So-1@gated-at.bofh.it>
Dou Liyang <douly.fnst@cn.fujitsu.com> 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 <akpm@linux-foundation.org>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Michal Hocko <mhocko@kernel.org>
> Cc: isimatu.yasuaki@jp.fujitsu.com
> Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
> Acked-by: David Rientjes <rientjes@google.com>
> ---
> 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().

Can we start removing it from the topology.h headers for each arch?

cheers

[toc] | [next] | [standalone]


#1695619 — Re: [PATCH v2] mm: Drop useless local parameters of __register_one_node()

FromDou Liyang <douly.fnst@cn.fujitsu.com>
Date2017-07-25 13:20 +0200
SubjectRe: [PATCH v2] mm: Drop useless local parameters of __register_one_node()
Message-ID<u762B-25M-5@gated-at.bofh.it>
In reply to#1695511
Hi Michael,

At 07/25/2017 05:09 PM, Michael Ellerman wrote:
> Dou Liyang <douly.fnst@cn.fujitsu.com> 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 <akpm@linux-foundation.org>
>> Cc: David Rientjes <rientjes@google.com>
>> Cc: Michal Hocko <mhocko@kernel.org>
>> Cc: isimatu.yasuaki@jp.fujitsu.com
>> Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
>> Acked-by: David Rientjes <rientjes@google.com>
>> ---
>> 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
>
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web