m68k: Fix the following checkpatch error:
PATCH 1/1 m68k: Fix the following checkpatch error:
ERROR: that open brace { should be on the previous line
ERROR: that open brace { should be on the previous line
ERROR: else should follow close brace '}'
--- arch/m68k/bvme6000/config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
arch/m68k/bvme6000/config.c +2 -5
@@ -290,8 +290,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t) rtc->msr =0x40 ;/* Ensure clock and real-time-mode-register * are accessible */ -if (op) - {/* Write.... */ +if (op) {/* Write.... */ rtc->t0cr_rtmr = t->tm_year%4 ; rtc->bcd_tenms =0 ; rtc->bcd_sec =bin2bcd (t->tm_sec);
@@ -303,9 +302,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t)if (t->tm_wday >=0 ) rtc->bcd_dow =bin2bcd (t->tm_wday+1 ); rtc->t0cr_rtmr = t->tm_year%4 |0x08 ; - } -else - {/* Read.... */ + }else {/* Read.... */ do { t->tm_sec = bcd2bin(rtc->bcd_sec); t->tm_min = bcd2bin(rtc->bcd_min);
Signature · 1 line
2.40.1
Geert Uytterhoeven
maintainerHi Zhangyong,
Quoted 5 lines · On Thu, Jul 20, 2023 at 11:50 AM <[email protected]> wrote:
ERROR: that open brace { should be on the previous line
ERROR: that open brace { should be on the previous line
ERROR: else should follow close brace '}'Signed-off-by zhangyongle <[email protected] >
Thanks for your patch!
But obviously you forgot to run scripts/checkpatch.pl on your own patch:
WARNING: A patch subject line should describe the change not the
tool that found it
#2:
Subject: [PATCH] m68k: Fix the following checkpatch error:
ERROR: Unrecognized email address: 'zhangyongle
<[email protected] >'
#14:
WARNING: From:/Signed-off-by: email address mismatch: 'From:
[email protected]' != 'Signed-off-by: zhangyongle <[email protected] >'
Quoted 13 lines
arch/m68k/bvme6000/config.c +1
-2@@ -290,8 +290,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t) rtc->msr =0x40 ;/* Ensure clock and real-time-mode-register * are accessible */ -if (op) - {/* Write.... */ +if (op) {/* Write.... */ rtc->t0cr_rtmr = t->tm_year%4 ; rtc->bcd_tenms =0 ; rtc->bcd_sec =bin2bcd (t->tm_sec);
arch/m68k/bvme6000/config.c int bvme6000_hwclk(int op, struct rtc_time *t) · line 308
Quoted 10 lines
arch/m68k/bvme6000/config.c +1
-3@@ -303,9 +302,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t)if (t->tm_wday >=0 ) rtc->bcd_dow =bin2bcd (t->tm_wday+1 ); rtc->t0cr_rtmr = t->tm_year%4 |0x08 ; - } -else - {/* Read.... */ + }else {/* Read.... */ do { t->tm_sec = bcd2bin(rtc->bcd_sec); t->tm_min = bcd2bin(rtc->bcd_min);
This patch is whitespace-damaged, and fails to apply.
These problems are present in all your patches, so something is wrong in your workflow. Please test your patches by running scripts/checkpatch.pl, emailing them to yourself, and trying to apply them.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds