News for hackers. Stuff that matters.
Re:Clang (LLVM C compiler) builds a working Linux kernel by caf on Tuesday October 26, 2010 @02:40AM (#1833321)
I'm pretty sure that bug was the canonical example of the usefulness of Coccinelle in kernel development. This semantic patch was used to find and fix all the instances of it:

    // Copyright: (C) 2009 Gilles Muller, Julia Lawall, INRIA, DIKU.  GPLv2.
    
    @@
    type T;
    expression E;
    identifier i,fld;
    statement S;
    @@
    
    - T i = E->fld;
    + T i;
      ... when != E
          when != i
      if (E == NULL) S
    + i = E->fld;
See http://coccinelle.lip6.fr/impact_linux.php for more.
Re:Clang (LLVM C compiler) builds a working Linux kernel by wash on Tuesday October 26, 2010 @03:53AM (#1833422)
Oh. Well, I guess they beat me to the punch.