Skip to contentSkip to conversation

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

PATCH New Alexey Dobriyan 1 participant 1 message Nov 1, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coding style: don't use "extern" with function prototypes

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.

---

 Documentation/process/coding-style.rst |    3 +++
 1 file changed, 3 insertions(+)
Documentation/process/coding-style.rst +3 -0
@@ -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
 -----------------------------------