mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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>
This commit is contained in:
parent
09be178400
commit
3fe5dbfef4
1 changed files with 3 additions and 0 deletions
|
@ -443,6 +443,9 @@ In function prototypes, include parameter names with their data types.
|
||||||
Although this is not required by the C language, it is preferred in Linux
|
Although this is not required by the C language, it is preferred in Linux
|
||||||
because it is a simple way to add valuable information for the reader.
|
because it is a simple way to add valuable information for the reader.
|
||||||
|
|
||||||
|
Do not use the `extern' keyword with function prototypes as this makes
|
||||||
|
lines longer and isn't strictly necessary.
|
||||||
|
|
||||||
|
|
||||||
7) Centralized exiting of functions
|
7) Centralized exiting of functions
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue