Go to file
Yu Kuai eb686e3f10 md/raid1-10: fix casting from randomized structure in raid1_submit_write()
commit b5a99602b7 upstream.

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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306142042.fmjfmTF8-lkp@intel.com/
Fixes: 8295efbe68 ("md/raid1-10: factor out a helper to submit normal write")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230616012136.3047071-1-yukuai1@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-11 19:39:51 +02:00
Documentation
LICENSES
arch x86/efi: Make efi_set_virtual_address_map IBT safe 2023-07-11 19:39:51 +02:00
block
certs
crypto crypto: jitter - correct health test during initialization 2023-07-11 19:39:49 +02:00
drivers md/raid1-10: fix casting from randomized structure in raid1_submit_write() 2023-07-11 19:39:51 +02:00
fs ksmbd: avoid field overflow warning 2023-07-11 19:39:51 +02:00
include scsi: ufs: core: mcq: Fix the incorrect OCS value for the device command 2023-07-11 19:39:48 +02:00
init kbuild: Fix CFI failures with GCOV 2023-07-11 19:39:50 +02:00
io_uring
ipc
kernel
lib
mm
net
rust
samples
scripts kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb 2023-07-11 19:39:51 +02:00
security
sound
tools perf test: Set PERF_EXEC_PATH for script execution 2023-07-11 19:39:49 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.