Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1221955
| From | Rasmus Villemoes <linux@rasmusvillemoes.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: incoming |
| Date | 2015-09-10 08:50 +0200 |
| Message-ID | <q73Qe-2gG-3@gated-at.bofh.it> (permalink) |
| References | <q6WYq-RO-7@gated-at.bofh.it> <q6WYq-RO-5@gated-at.bofh.it> |
| Organization | D03 |
On Thu, Sep 10 2015, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> The VERY FIRST conversion patch I looked at was buggy. That makes me
> angry. The whole *AND*ONLY* point of this whole thing was to get rid
> of bugs, and be a obviously safe interface, and then the first
> conversion patch proves it wrong.
>
> Let me show you:
>
> if (isdigit(*str)) {
> - io_tlb_nslabs = simple_strtoul(str, &str, 0);
> + str += parse_integer(str, 0, &io_tlb_nslabs);
>
> and obviously nobody spent even a *second* asking themselves "what if
> parse_integer returns an error".
[This is going to sound awfully self-glorifying. Oh well.] I did point
that out in another instance (memparse), which I think then got somewhat
fixed in a later version. Since Alexey and I seemed to disagree on what
guiding principles to use when doing the conversions and a number of
other points, I didn't have the energy to go through the entire series,
and the discussion died out.
http://thread.gmane.org/gmane.linux.kernel/1942623/focus=1944193
> I liked the automatic type-based templating it does, but I *don't*
> like the breakage that seems to be inevitable in any large-scale
> conversion from a previously used historical interface.
My words exactly.
Rasmus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: incoming Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-10 01:30 +0200 Re: incoming Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-09-10 08:50 +0200
csiph-web