[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20181101134153.GA29267@avx2>
Date: Thu, 1 Nov 2018 16:41:53 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] 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.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.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
-----------------------------------
Powered by blists - more mailing lists