Skip to content

address various checkpatch.pl requirements

[email protected] linux-raid llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest34 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34md: fix required/prohibited spaces [ERROR]drivers/md/md-autodetect.c drivers/md/md-bitmap.c drivers/md/md-bitmap.h +11 more+132 -1380 replies
2/34md: fix 'foo*' and 'foo * bar' [ERROR]drivers/md/md-multipath.c drivers/md/md.c drivers/md/md.h +4 more+41 -410 replies
3/34md: fix EXPORT_SYMBOL() to follow its functions immediately [ERROR]drivers/md/md.c+0 -20 replies
4/34md: adjust braces on functions/structures [ERROR]drivers/md/md-faulty.c drivers/md/md-linear.c drivers/md/md-linear.h +7 more+18 -320 replies
5/34md: correct code indent [ERROR]drivers/md/md.c drivers/md/md.h drivers/md/raid1.c +3 more+22 -270 replies
6/34md: move trailing statements to next line [ERROR]drivers/md/md-autodetect.c drivers/md/md-faulty.c drivers/md/md.c +3 more+61 -430 replies
7/34md: consistent spacing around operators [ERROR]drivers/md/md.c+4 -40 replies
8/34md: don't initilize statics/globals to 0/false [ERROR]drivers/md/md.c drivers/md/raid0.c drivers/md/raid5.c+3 -31 reply
9/34md: else should follow close curly brace [ERROR]drivers/md/md-cluster.c drivers/md/md.c+2 -41 reply
10/34md: remove trailing whitespace [ERROR]drivers/md/md.c+19 -180 replies
11/34md: do not use assignment in if condition [ERROR]drivers/md/md-faulty.c drivers/md/md-multipath.c drivers/md/md.c +2 more+48 -290 replies
12/34md: add missing blank line after declaration [WARNING]drivers/md/md-autodetect.c drivers/md/md-bitmap.c drivers/md/md-cluster.c +10 more+222 -50 replies
13/34md: space prohibited between function and opening parenthesis [WARNING]drivers/md/md-linear.c drivers/md/md-multipath.c drivers/md/md.c +3 more+32 -360 replies
14/34md: prefer seq_put[cs]() to seq_printf() |WARNING]drivers/md/md-bitmap.c drivers/md/md-faulty.c drivers/md/md.c +3 more+32 -320 replies
15/34md: avoid multiple line dereference [WARNING}drivers/md/md-bitmap.c drivers/md/md.c+13 -200 replies
16/34md: fix block comments [WARNING]drivers/md/md-bitmap.c drivers/md/md-cluster.c drivers/md/md-linear.c +8 more+159 -1520 replies
17/34md: add missing function identifier names to function definition arguments [WARNING]drivers/md/md.c include/linux/raid/pq.h include/linux/raid/xor.h+20 -200 replies
18/34md: avoid redundant braces in single line statements [WARNING]drivers/md/md-bitmap.c drivers/md/md-cluster.c drivers/md/raid5.c+3 -60 replies
19/34md: place constant on the right side of a test [WARNING]drivers/md/raid10.c+2 -20 replies
20/34md: avoid pointless filenames in files [WARNING]drivers/md/md.c drivers/md/raid0.c drivers/md/raid1.c +2 more+6 -50 replies
21/34md: avoid useless else after break or return [WARNING]drivers/md/md-bitmap.c drivers/md/md-cluster.c drivers/md/md.c +1 more+31 -280 replies
22/34md: don't indent labels [WARNING]drivers/md/md.c drivers/md/raid10.c drivers/md/raid5.c+6 -60 replies
23/34md: fix code indent for conditional statements [WARNING]drivers/md/md-bitmap.c drivers/md/md.c drivers/md/raid5.c+7 -70 replies
24/34md: prefer octal permissions [WARNING]drivers/md/md-bitmap.c drivers/md/md.c drivers/md/raid5-ppl.c +1 more+106 -1310 replies
25/34md: remove bogus IS_ENABLED() macro [WARNING]include/linux/raid/pq.h+0 -10 replies
26/34md autodetect: correct placement of __initdata [WARNING]drivers/md/md-autodetect.c+3 -30 replies
27/34md: prefer using "%s...", __func__ [WARNING]drivers/md/md-multipath.c drivers/md/md.c drivers/md/raid5.c+10 -130 replies
28/34md pq: adjust __attribute__ [WARNING]include/linux/raid/pq.h+6 -100 replies
29/34md: prefer 'unsigned int' [WARNING]drivers/md/md.c drivers/md/raid0.c drivers/md/raid1-10.c +2 more+8 -100 replies
30/34md: prefer kmap_local_page() instead of deprecated kmap_atomic() [WARNING]drivers/md/md-bitmap.c drivers/md/md-cluster.c drivers/md/raid5-cache.c+34 -340 replies
31/34md raid5: prefer 'int' instead of 'signed' [WARNING]drivers/md/raid5.c+2 -20 replies
32/34md: prefer kvmalloc_array() with multiply [WARNING]drivers/md/md.c+1 -20 replies
33/34md: avoid splitting quoted strings [WARNING]drivers/md/md-bitmap.c drivers/md/md-cluster.c drivers/md/raid0.c +3 more+14 -220 replies
34/34md: avoid return in void functions [WARNING]drivers/md/md.c drivers/md/raid0.c drivers/md/raid10.c+0 -30 replies

Reviews trailers per patch

2 of 34 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNigel CroxonXiao NiPaul Menzel
SeriesR-b T-b R-b T-b
1/34
2/34
3/34
4/34
5/34
6/34
7/34
8/34R-b
9/34R-b
10/34
11/34
12/34
13/34
14/34
15/34
16/34
17/34
18/34
19/34
20/34
21/34
22/34
23/34
24/34
25/34
26/34
27/34
28/34
29/34
30/34
31/34
32/34
33/34
34/34

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/34] address various checkpatch.pl requirements

From: heinzm <[email protected]>

This patch series addresses checkpatch.pl reuirements.

It is grouped into patches addressing errors first then warnings. Each patch fixes flaws in one semantical respect (e.g. fix spaces).

Series passed upstream regression tests succesfully.

Heinz Mauelshagen (34):
md: fix required/prohibited spaces [ERROR]
md: fix 'foo*' and 'foo * bar' [ERROR]
md: fix EXPORT_SYMBOL() to follow its functions immediately [ERROR]
md: adjust braces on functions/structures [ERROR]
md: correct code indent [ERROR]
md: move trailing statements to next line [ERROR]
md: consistent spacing around operators [ERROR]
md: don't initialize statics/globals to 0/false [ERROR]
md: else should follow close curly brace [ERROR]
md: remove trailing whitespace [ERROR]
md: do not use assignment in if condition [ERROR]
md: add missing blank line after declaration [WARNING]
md: space prohibited between function and opening parenthesis [WARNING]
md: prefer seq_put[cs]() to seq_printf() |WARNING]
md: avoid multiple line dereference [WARNING}
md: fix block comments [WARNING]
md: add missing function identifier names to function definition arguments [WARNING]
md: avoid redundant braces in single line statements [WARNING]
md: place constant on the right side of a test [WARNING]
md: avoid pointless filenames in files [WARNING]
md: avoid useless else after break or return [WARNING]
md: don't indent labels [WARNING]
md: fix code indent for conditional statements [WARNING]
md: prefer octal permissions [WARNING]
md: remove bogus IS_ENABLED() macro [WARNING]
md autodetect: correct placement of __initdata [WARNING]
md: prefer using "%s...", __func__ [WARNING]
md pq: adjust __attribute__ [WARNING]
md: prefer 'unsigned int' [WARNING]
md: prefer kmap_local_page() instead of deprecated kmap_atomic() [WARNING] md raid5: prefer 'int' instead of 'signed' [WARNING]
md: prefer kvmalloc_array() with multiply [WARNING]
md: avoid splitting quoted strings [WARNING]
md: avoid return in void functions [WARNING]

 drivers/md/md-autodetect.c |  18 +-
 drivers/md/md-bitmap.c     | 159 ++++----
 drivers/md/md-bitmap.h     |   2 +-
 drivers/md/md-cluster.c    |  51 ++-
 drivers/md/md-faulty.c     |  43 ++-
 drivers/md/md-linear.c     |  33 +-
 drivers/md/md-linear.h     |   3 +-
 drivers/md/md-multipath.c  |  52 +--
 drivers/md/md.c            | 755 +++++++++++++++++++------------------
 drivers/md/md.h            |  17 +-
 drivers/md/raid0.c         |  70 ++--
 drivers/md/raid1-10.c      |   3 +-
 drivers/md/raid1.c         |  91 +++--
 drivers/md/raid10.c        | 174 +++++----
 drivers/md/raid5-cache.c   |  41 +-
 drivers/md/raid5-ppl.c     |  16 +-
 drivers/md/raid5.c         | 293 +++++++-------
 include/linux/raid/pq.h    |  33 +-
 include/linux/raid/xor.h   |  34 +-
 19 files changed, 1032 insertions(+), 856 deletions(-)
Signature · 1 line
2.39.2