From: Joe Perches Date: Fri, 5 Oct 2012 00:13:36 +0000 (-0700) Subject: CodingStyle: add networking specific block comment style X-Git-Tag: v3.7-rc1~110^2~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4ff1b5f8bf09d77d7329cbff224f0237646c90e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git CodingStyle: add networking specific block comment style The block comment style in net/ and drivers/net is non-standard. Document it. Signed-off-by: Joe Perches Cc: "Allan, Bruce W" Cc: Andy Whitcroft Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index cb9258b..495e5ba 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -454,6 +454,16 @@ The preferred style for long (multi-line) comments is: * with beginning and ending almost-blank lines. */ +For files in net/ and drivers/net/ the preferred style for long (multi-line) +comments is a little different. + + /* The preferred comment style for files in net/ and drivers/net + * looks like this. + * + * It is nearly the same as the generally preferred comment style, + * but there is no initial almost-blank line. + */ + It's also important to comment data, whether they are basic types or derived types. To this end, use just one data declaration per line (no commas for multiple data declarations). This leaves you room for a small comment on each