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] [day] [month] [year] [list]
Message-ID: <20160208111808.GA8870@gmail.com>
Date:	Mon, 8 Feb 2016 12:18:08 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	PaX Team <pageexec@...email.hu>
Cc:	linux-tip-commits@...r.kernel.org, zhangyanfei@...fujitsu.com,
	wency@...fujitsu.com, tglx@...utronix.de,
	torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
	imtangchen@...il.com, spender@...ecurity.net, hpa@...or.com,
	tangchen@...fujitsu.com, y14sg1@...cast.net,
	isimatu.yasuaki@...fujitsu.com, akpm@...ux-foundation.org,
	izumi.taku@...fujitsu.com, laijs@...fujitsu.com
Subject: Re: [tip:x86/mm] x86/mm/numa: Clean up
 numa_clear_kernel_node_hotplug ()


* PaX Team <pageexec@...email.hu> wrote:

> On 8 Feb 2016 at 1:42, tip-bot for Ingo Molnar wrote:
> 
> >   for (i = 0; i < numa_meminfo.nr_blks; i++) {
> > -		struct numa_memblk *mb = &numa_meminfo.blk[i];
> > +		struct numa_memblk *mb = numa_meminfo.blk + i;
> > 
> > -		memblock_set_node(mb->start, mb->end - mb->start,
> > -				  &memblock.reserved, mb->nid);
> > +		memblock_set_node(mb->start, mb->end-mb->start, &memblock.reserved, mb->nid);
> 
> if you're not keeping to the 80-char length (no complaints from me on that), could
> you also use some whitespace around the '-' operator for more readability?

Yeah, like I did it later in the function:

+               memblock_clear_hotplug(mb->start, mb->end - mb->start);

Fixed.

Thanks,

	Ingo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ