diff options
author | Yu Kuai <[email protected]> | 2023-06-16 09:21:36 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-06-23 09:33:16 -0700 |
commit | b5a99602b74bbfa655be509c615181dd95b0719e (patch) | |
tree | fff8adec95b44e78350f7574569ba0f94be70803 /scripts/gdb | |
parent | 125bfc7cd750e68c99f1d446e2c22abea08c237f (diff) |
md/raid1-10: fix casting from randomized structure in raid1_submit_write()
Following build error triggered while build with clang version 17.0.0
with W=1(this can't be reporduced with gcc 13.1.0):
drivers/md/raid1-10.c:117:25: error: casting from randomized structure
pointer type 'struct block_device *' to 'struct md_rdev *'
117 | struct md_rdev *rdev = (struct md_rdev *)bio->bi_bdev;
| ^
Fix this by casting 'bio->bi_bdev' to 'void *', as it used to be.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 8295efbe68c0 ("md/raid1-10: factor out a helper to submit normal write")
Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions