Messages in this thread | | | Subject | Re: [PATCH] update checkpatch.pl to version 0.06 | From | Dave Hansen <> | Date | Fri, 22 Jun 2007 10:09:11 -0700 |
| |
Andy and Joel, very cool that you got this in-tree!
I have a patch touching a bunch of fs ioctl functions.
Things like ext2_ioctl() look like this:
foo_ioctl() { switch(ioctl) { case FOO: lots of code error: return result; case BAR: return result; }
Notice that the "error:" label is indented. Each of the case is kinda like a mini function with its own variables and return statement.
Do you think it is worth teaching the patch checker about these? It seems pretty sane style to me.
Would we want to teach it that labels must be inside of brackets, or should we have it look at the whole file to see if there precedent for indented labels in the file?
-- Dave
- 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/
| |