Skip to content

RFC rcu: fix sparse warnings

Pranith Kumar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kernel/rcu/tree.c:1272 fix a sparse warningkernel/rcu/tree.c+35 -303 replies
2/5kernel/rcu/tree_plugin.h:1494 fix a sparse warningkernel/rcu/tree_plugin.h+2 -01 reply
3/5kernel/rcu/tree_plugin.h:990 fix a sparse warningkernel/rcu/tree_plugin.h+1 -01 reply
4/5kernel/rcu/tree.c:3435 fix a sparse warningkernel/rcu/tree.c+4 -12 replies
5/5kernel/rcu/rcutorture.c:185 fix a sparse warningkernel/rcu/rcutorture.c+1 -13 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchJosh Triplett
1/5
2/5
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/5] rcu: fix sparse warnings

The following patch series fixes sparse warning. There are still 3 warnings left which I am figuring out. I wanted to send these to get feedback and see if I am on the right path.

Patch 1 is the significant one which involves some refactoring. I am guessing the 3 remaining sparse warnings will require similar refactoring.

Patch 4 remove the __noreturn attribute as this confuses sparse. I am not sure if removing this is the right thing to do or if we should be fixing sparse.

The other 3 are trivial.

Pranith Kumar (5):
kernel/rcu/tree.c:1272 fix a sparse warning kernel/rcu/tree_plugin.h:1494 fix a sparse warning kernel/rcu/tree_plugin.h:990 fix a sparse warning kernel/rcu/tree.c:3435 fix a sparse warning kernel/rcu/rcutorture.c:185 fix a sparse warning

 kernel/rcu/rcutorture.c  |  2 +-
 kernel/rcu/tree.c        | 70 +++++++++++++++++++++++++++---------------------
 kernel/rcu/tree_plugin.h |  3 +++
 3 files changed, 43 insertions(+), 32 deletions(-)
Signature · 1 line
1.9.1