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]
Message-ID: <d20a0971-a03b-ce24-1111-ca06de234cd6@huawei.com>
Date: Tue, 3 Sep 2024 10:06:02 +0800
From: Jinjie Ruan <ruanjinjie@...wei.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <pabeni@...hat.com>,
	<christophe.jaillet@...adoo.fr>, <horms@...nel.org>, <netdev@...r.kernel.org>
Subject: Re: [PATCH -next] netlink: Use the BITS_PER_LONG macro



On 2024/9/3 9:39, Jakub Kicinski wrote:
> On Mon, 2 Sep 2024 19:10:52 +0800 Jinjie Ruan wrote:
>> sizeof(unsigned long) * 8 is the number of bits in an unsigned long
>> variable, replace it with BITS_PER_LONG macro to make it simpler.
> 
> Does coccicheck catch such cases?

Yes


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ