Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1598021 > unrolled thread

[PATCH] Add blank line after function/struct/union/enum declarations

Started byArushi Singhal <arushisinghal19971997@gmail.com>
First post2017-03-10 19:50 +0100
Last post2017-03-12 15:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Add blank line after function/struct/union/enum declarations Arushi Singhal <arushisinghal19971997@gmail.com> - 2017-03-10 19:50 +0100
    Re: [PATCH] Add blank line after function/struct/union/enum  declarations Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-03-12 15:30 +0100

#1598021 — [PATCH] Add blank line after function/struct/union/enum declarations

FromArushi Singhal <arushisinghal19971997@gmail.com>
Date2017-03-10 19:50 +0100
Subject[PATCH] Add blank line after function/struct/union/enum declarations
Message-ID<tjxLX-7Vp-1@gated-at.bofh.it>
This patch fixes the warnings reported by checkpatch.pl
for please use a blank line after function/struct/union/enum
declarations.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 drivers/staging/speakup/main.c         | 1 +
 drivers/staging/speakup/serialio.c     | 1 +
 drivers/staging/speakup/speakup_dtlk.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 01eabc19039c..17df20ec94be 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -108,6 +108,7 @@ enum {
 	CT_Window,
 	CT_Max
 };
+
 #define read_all_mode CT_Max
 
 static struct tty_struct *tty;
diff --git a/drivers/staging/speakup/serialio.c b/drivers/staging/speakup/serialio.c
index 7e6bc3b05da3..9b2626e85042 100644
--- a/drivers/staging/speakup/serialio.c
+++ b/drivers/staging/speakup/serialio.c
@@ -21,6 +21,7 @@ static void start_serial_interrupt(int irq);
 static const struct old_serial_port rs_table[] = {
 	SERIAL_PORT_DFNS
 };
+
 static const struct old_serial_port *serstate;
 static int timeouts;
 
diff --git a/drivers/staging/speakup/speakup_dtlk.c b/drivers/staging/speakup/speakup_dtlk.c
index 1ebe5012ec0b..e36360f65f36 100644
--- a/drivers/staging/speakup/speakup_dtlk.c
+++ b/drivers/staging/speakup/speakup_dtlk.c
@@ -43,6 +43,7 @@ static int port_forced;
 static unsigned int synth_portlist[] = {
 		 0x25e, 0x29e, 0x2de, 0x31e, 0x35e, 0x39e, 0
 };
+
 static u_char synth_status;
 
 static struct var_t vars[] = {
-- 
2.11.0

[toc] | [next] | [standalone]


#1598640 — Re: [PATCH] Add blank line after function/struct/union/enum declarations

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-03-12 15:30 +0100
SubjectRe: [PATCH] Add blank line after function/struct/union/enum declarations
Message-ID<tkcFr-2Iv-9@gated-at.bofh.it>
In reply to#1598021
On Sat, Mar 11, 2017 at 12:12:43AM +0530, Arushi Singhal wrote:
> This patch fixes the warnings reported by checkpatch.pl
> for please use a blank line after function/struct/union/enum
> declarations.
> 
> Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>

You didn't put what subsystem: driver you are modifying in the subject
line :(

thanks,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web