md/raid5-cache: Annotate pslot with __rcu notation
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 8 Jun 2022 16:27:53 +0000 (10:27 -0600)
committerSong Liu <song@kernel.org>
Sun, 3 Jul 2022 14:55:38 +0000 (07:55 -0700)
commit13a5bd4c6b10491376d5ed95e88892c9a129dac3
tree40ce930da87bcc279a5c8ac878104fc16a0509a0
parent0d79ac61090f92f8e94d459715b2fa2cd5c14199
md/raid5-cache: Annotate pslot with __rcu notation

radix_tree_lookup_slot() and radix_tree_replace_slot() API expect the
slot returned and looked up to be marked with __rcu. Otherwise
sparse warnings are generated:

  drivers/md/raid5-cache.c:2939:23: warning: incorrect type in
assignment (different address spaces)
  drivers/md/raid5-cache.c:2939:23:    expected void **pslot
  drivers/md/raid5-cache.c:2939:23:    got void [noderef] __rcu **

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5-cache.c