Re: [PATCH 02/12] Add parse_integer() (replacement for simple_strto*())

From: Andrew Morton
Date: Thu Jul 09 2015 - 15:28:51 EST


On Fri, 8 May 2015 21:30:29 +0300 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> Enter parse_integer().
>
> int parse_integer(const char *s, unsigned int base, T *val);

OK, I grabbed these. Let's see how it goes. Were these patches still
up to date?

Presumably we'd benefit from a checkpatch rule to alert people to the
new regime. Can you please suggest what such a rule should do?

The macros in lib/test-parse-integer.c hurt my brain.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/