]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: Un-nest struct raid5_percpu definition
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 7 Apr 2022 16:57:08 +0000 (10:57 -0600)
committerSong Liu <song@kernel.org>
Mon, 25 Apr 2022 21:00:36 +0000 (14:00 -0700)
commiteb91376acc631615df938b3f69b729dd1a7d61de
tree2a629b29960b8bca35432c23a2b45b798c85ac78
parentb322c93b54e474003e73cfae3369025a2568eea7
md/raid5: Un-nest struct raid5_percpu definition

Sparse reports many warnings of the form:
  drivers/md/raid5.c:1476:16: warning: dereference of noderef expression

This is because all struct raid5_percpu definitions get marked as
__percpu when really only the pointer in r5conf should have that
annotation.

Fix this by moving the defnition of raid5_precpu out of the definition
of struct r5conf.

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.h