diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2019-01-03 18:26:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-04 16:13:45 -0500 |
commit | 3fe5dbfef47e992b810cbe82af1df02d8255fb8c (patch) | |
tree | f8c9cd8ea3dd70ca4e57b140c45dfda1a9615ff2 /Documentation/process | |
parent | 09be178400829dddc1189b50a7888495dd26aa84 (diff) |
Documentation/process/coding-style.rst: don't use "extern" with function prototypes
`extern' with function prototypes makes lines longer and creates more
characters on the screen.
Do not bug people with checkpatch.pl warnings for now as fallout can be
devastating.
Link: http://lkml.kernel.org/r/20181101134153.GA29267@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/process')
-rw-r--r-- | Documentation/process/coding-style.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst index 277c113376a6..b78dd680c038 100644 --- a/Documentation/process/coding-style.rst +++ b/Documentation/process/coding-style.rst | |||
@@ -443,6 +443,9 @@ In function prototypes, include parameter names with their data types. | |||
443 | Although this is not required by the C language, it is preferred in Linux | 443 | Although this is not required by the C language, it is preferred in Linux |
444 | because it is a simple way to add valuable information for the reader. | 444 | because it is a simple way to add valuable information for the reader. |
445 | 445 | ||
446 | Do not use the `extern' keyword with function prototypes as this makes | ||
447 | lines longer and isn't strictly necessary. | ||
448 | |||
446 | 449 | ||
447 | 7) Centralized exiting of functions | 450 | 7) Centralized exiting of functions |
448 | ----------------------------------- | 451 | ----------------------------------- |