Commit c4ff1b5f authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

CodingStyle: add networking specific block comment style

The block comment style in net/ and drivers/net is non-standard.
Document it.
Signed-off-by: default avatarJoe Perches <>
Cc: "Allan, Bruce W" <>
Cc: Andy Whitcroft <>
Cc: David Miller <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 05880600
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment