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: <AANLkTinQ5gLNrUQUxeV6SzfoU7J3UcERMtmzyS2inv8w@mail.gmail.com>
Date:	Mon, 6 Dec 2010 13:27:21 -0200
From:	Thiago Farina <tfransosi@...il.com>
To:	Alexey Dobriyan <adobriyan@...il.com>
Cc:	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	yi.y.yang@...el.com
Subject: Re: [PATCH 1/2] kstrto*: converting strings to integers done
 (hopefully) right

On Mon, Dec 6, 2010 at 1:19 PM, Alexey Dobriyan <adobriyan@...il.com> wrote:
> On Mon, Dec 6, 2010 at 3:26 AM, Thiago Farina <tfransosi@...il.com> wrote:
>> On Wed, Jun 9, 2010 at 6:46 PM, Alexey Dobriyan <adobriyan@...il.com> wrote:
>>> diff --git a/lib/test-kstrtox.c b/lib/test-kstrtox.c
>>> new file mode 100644
>>> index 0000000..56fda26
>>> --- /dev/null
>>> +++ b/lib/test-kstrtox.c
>>> @@ -0,0 +1,356 @@
>>> +#include <linux/init.h>
>>> +#include <linux/kernel.h>
>>> +#include <linux/module.h>
>>> +
>>> +#define for_each_test(i, test) \
>>> +       for (i = 0; i < sizeof(test) / sizeof(test[0]); i++)
>>> +
>> micronit: Can you use ARRAY_SIZE macro here? Ignore this if it's irrelevant.
>
> Dunno,
> sizeof(x)/sizeof(x[0]) is really C idiom.
I know.

> And ARRAY_SIZE is misnamed, it doesn't reflect size.
>
What it reflects so? Isn't the number of elements in the array? What
would be a better name?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ