Skip to content

sunrpc: sparse warning cleanups

Jeff Layton linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v17 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- reworked the gss_krb5_seal.c and gss_krb5_wrap.c patches to be less ugly
- squashed the setup_token patch into the gss_krb5_seal.c patch
- dropped patch to make xdr_get_next_encode_buffer static since Trond proposed the same fix

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sunrpc: remove __rcu annotation from struct gss_cl_ctx->gc_gss_ctxinclude/linux/sunrpc/auth_gss.h+1 -10 replies
2/5sunrpc: fix RCU handling of gc_ctx fieldnet/sunrpc/auth_gss/auth_gss.c+35 -170 replies
3/5sunrpc: clean up sparse endianness warnings in gss_krb5_seal.cnet/sunrpc/auth_gss/gss_krb5_seal.c+17 -110 replies
4/5sunrpc: clean up sparse endianness warnings in gss_krb5_wrap.cnet/sunrpc/auth_gss/gss_krb5_wrap.c+13 -70 replies
5/5sunrpc: remove "ec" argument from encrypt_v2 operationinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_wrap.c+5 -100 replies

Reviews trailers per patch

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

PatchChristoph Hellwig
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 v2 thread

Cover letter [PATCH v2 0/5] sunrpc: sparse warning cleanups

v2:
- reworked the gss_krb5_seal.c and gss_krb5_wrap.c patches to be less ugly
- squashed the setup_token patch into the gss_krb5_seal.c patch
- dropped patch to make xdr_get_next_encode_buffer static since Trond proposed the same fix

This fixes up all of the sparse warnings that I see when building net/sunrpc. The only real substantive change is the second patch which should fix the RCU handling for the gc_ctx field. That looks quite wrong right now, though it may be that the refcounting and lifecycle of the thing helps paper over it today.

There are still a few warnings that come from generic ipv6.h inlines. I'll send a separate patch to the netdev folks to address those.

Trond, if these look OK then they should probably go via your tree as it looks like you've already merged the gc_acceptor patches and the RCU fixes in patch #2 should apply on top of those.

Jeff Layton (5):
sunrpc: remove __rcu annotation from struct gss_cl_ctx->gc_gss_ctx
sunrpc: fix RCU handling of gc_ctx field
sunrpc: clean up sparse endianness warnings in gss_krb5_seal.c
sunrpc: clean up sparse endianness warnings in gss_krb5_wrap.c
sunrpc: remove "ec" argument from encrypt_v2 operation

 include/linux/sunrpc/auth_gss.h       |  2 +-
 include/linux/sunrpc/gss_krb5.h       |  4 +--
 net/sunrpc/auth_gss/auth_gss.c        | 52 +++++++++++++++++++++++------------
 net/sunrpc/auth_gss/gss_krb5_crypto.c |  9 ++----
 net/sunrpc/auth_gss/gss_krb5_seal.c   | 28 +++++++++++--------
 net/sunrpc/auth_gss/gss_krb5_wrap.c   | 20 +++++++++-----
 6 files changed, 70 insertions(+), 45 deletions(-)
Signature · 1 line
1.9.3