Commit 2314c2e
md/raid5: fix spares errors about rcu usage
As commit ad86067 ("md/raid5: remove rcu protection to access rdev
from conf") explains, rcu protection can be removed, however, there are
three places left, there won't be any real problems.
drivers/md/raid5.c:8071:24: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:8071:24: struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:8071:24: struct md_rdev *
drivers/md/raid5.c:7569:25: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:7569:25: struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:7569:25: struct md_rdev *
drivers/md/raid5.c:7573:25: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:7573:25: struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:7573:25: struct md_rdev *
Fixes: ad86067 ("md/raid5: remove rcu protection to access rdev from conf")
Cc: stable@vger.kernel.org
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240615085143.1648223-1-yukuai1@huaweicloud.com1 parent 98d34c0 commit 2314c2e
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
7568 | 7568 | | |
7569 | 7569 | | |
7570 | 7570 | | |
7571 | | - | |
| 7571 | + | |
7572 | 7572 | | |
7573 | 7573 | | |
7574 | 7574 | | |
7575 | | - | |
| 7575 | + | |
7576 | 7576 | | |
7577 | 7577 | | |
7578 | 7578 | | |
| |||
8054 | 8054 | | |
8055 | 8055 | | |
8056 | 8056 | | |
8057 | | - | |
| 8057 | + | |
8058 | 8058 | | |
8059 | 8059 | | |
8060 | 8060 | | |
| |||
8068 | 8068 | | |
8069 | 8069 | | |
8070 | 8070 | | |
8071 | | - | |
8072 | 8071 | | |
8073 | | - | |
| 8072 | + | |
8074 | 8073 | | |
8075 | 8074 | | |
8076 | 8075 | | |
8077 | 8076 | | |
8078 | 8077 | | |
8079 | | - | |
8080 | 8078 | | |
8081 | 8079 | | |
8082 | 8080 | | |
| |||
0 commit comments