lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 29 Jun 2017 19:58:52 +0800
From:   Dou Liyang <douly.fnst@...fujitsu.com>
To:     Michal Hocko <mhocko@...nel.org>
CC:     <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
        <akpm@...ux-foundation.org>, David Rientjes <rientjes@...gle.com>,
        <isimatu.yasuaki@...fujitsu.com>
Subject: Re: [PATCH v2] mm: Drop useless local parameters of
 __register_one_node()

Hi Michal,

At 06/29/2017 07:12 PM, Michal Hocko wrote:
> On Wed 21-06-17 10:57:26, Dou Liyang wrote:
>> ... 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@...ux-foundation.org>
>> Cc: David Rientjes <rientjes@...gle.com>
>> Cc: Michal Hocko <mhocko@...nel.org>
>> Cc: isimatu.yasuaki@...fujitsu.com
>> Signed-off-by: Dou Liyang <douly.fnst@...fujitsu.com>
>> Acked-by: David Rientjes <rientjes@...gle.com>
>
> I am sorry, this slipped through cracks.
> Acked-by: Michal Hocko <mhocko@...e.com>

Thanks for your Acked-by, but this patch has been added to the -mm tree. 
  Its filename is
    mm-drop-useless-local-parameters-of-__register_one_node.patch

This patch should soon appear at
 
http://ozlabs.org/~akpm/mmots/broken-out/mm-drop-useless-local-parameters-of-__register_one_node.patch
and later at
 
http://ozlabs.org/~akpm/mmotm/broken-out/mm-drop-useless-local-parameters-of-__register_one_node.patch

I don't know what should I do next ? :)

Thanks,
	dou.
>
>> ---
>> 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(-)
>>
>> diff --git a/drivers/base/node.c b/drivers/base/node.c
>> index 73d39bc..d8dc830 100644
>> --- a/drivers/base/node.c
>> +++ b/drivers/base/node.c
>> @@ -288,7 +288,7 @@ static void node_device_release(struct device *dev)
>>   *
>>   * Initialize and register the node device.
>>   */
>> -static int register_node(struct node *node, int num, struct node *parent)
>> +static int register_node(struct node *node, int num)
>>  {
>>  	int error;
>>
>> @@ -567,19 +567,14 @@ static void init_node_hugetlb_work(int nid) { }
>>
>>  int __register_one_node(int nid)
>>  {
>> -	int p_node = parent_node(nid);
>> -	struct node *parent = NULL;
>>  	int error;
>>  	int cpu;
>>
>> -	if (p_node != nid)
>> -		parent = node_devices[p_node];
>> -
>>  	node_devices[nid] = kzalloc(sizeof(struct node), GFP_KERNEL);
>>  	if (!node_devices[nid])
>>  		return -ENOMEM;
>>
>> -	error = register_node(node_devices[nid], nid, parent);
>> +	error = register_node(node_devices[nid], nid);
>>
>>  	/* link cpu under this node */
>>  	for_each_present_cpu(cpu) {
>> --
>> 2.5.5
>>
>>
>>
>> --
>> To unsubscribe, send a message with 'unsubscribe linux-mm' in
>> the body to majordomo@...ck.org.  For more info on Linux MM,
>> see: http://www.linux-mm.org/ .
>> Don't email: <a href=mailto:"dont@...ck.org"> email@...ck.org </a>
>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ