All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] coding style: don't use "extern" with function prototypes
@ 2018-11-01 13:41 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2018-11-01 13:41 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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(+)

--- 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
 -----------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-01 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-01 13:41 [PATCH] coding style: don't use "extern" with function prototypes Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.