Re: latest checkpatch

Ingo Molnar
2007-10-18T20:52:12Z

* Avi Kivity <avi@qumranet.com> wrote:

> >> if (foo)
> >> bar();
> >> baz();
> >> one();
> >>
> >
> > detecting that would be awesome - it's often the sign of a real bug
> > because the intent is often to have bar() and baz() in the conditional
> > block.
>
> This is more useful operating on an entire file, so the script can see
> all the context.

there's "checkpatch --file" for complete files, so it can see the full
context if the user passes it in.

Ingo