Re: [PATCH v1 1/2] kstrtox: Make _parse_integer() take variadic arguments
From: Andy Shevchenko
Date: Wed Jun 03 2026 - 02:47:58 EST
On Tue, Jun 02, 2026 at 10:29:46PM +0200, Andy Shevchenko wrote:
> Instead of having different functions that just use default parameters,
> combine those to use variadic arguments, so the user may call it using
> the same name.
...
Maybe we also need to add a comment here
/* Do NOT call this directly, use _parse_integer() wrapper instead */
> unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *res,
> size_t max_chars);
...
Overall I think independently on the new user (if it comes or not) this change
is good on itself. Petr, what do you think about this?
--
With Best Regards,
Andy Shevchenko