coding style: don't use "extern" with function prototypes
diff mbox series

Message ID 20181101134153.GA29267@avx2
State New, archived
Headers show
Series
  • coding style: don't use "extern" with function prototypes
Related show

Commit Message

Alexey Dobriyan Nov. 1, 2018, 1:41 p.m. UTC
As the patch says "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.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 Documentation/process/coding-style.rst |    3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

--- 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.
 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.
 
+Do not use ``extern`` keyword with function prototypes as it makes lines
+longer and isn't strictly necessary.
+
 
 7) Centralized exiting of functions
 -----------------------------------