linux-stable/drivers
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
..
accel accel/ivpu: Fix sporadic VPU boot failure 2023-06-14 11:16:57 +02:00
accessibility Merge 6.2-rc5 into char-misc-next 2023-01-22 08:37:23 +01:00
acpi APEI: GHES: correctly return NULL for ghes_get_devices() 2023-07-11 19:39:24 +02:00
amba driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
android
ata ata: libata-scsi: Avoid deadlock on rescan after device resume 2023-06-28 11:13:57 +02:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-03-21 20:19:28 -07:00
auxdisplay
base PM: domains: Move the verification of in-params from genpd_add_device() 2023-07-11 19:39:24 +02:00
bcma driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
block null_blk: Fix: memory release when memory_backed=1 2023-06-28 11:14:23 +02:00
bluetooth Bluetooth: hci_qca: fix debugfs registration 2023-06-14 11:16:58 +02:00
bus bus: ti-sysc: Fix dispc quirk masking bool variables 2023-07-11 19:39:35 +02:00
cdrom
char hwrng: st - keep clock enabled while hwrng is registered 2023-07-11 19:39:50 +02:00
clk clk: Fix memory leak in devm_clk_notifier_register() 2023-07-11 19:39:44 +02:00
clocksource clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe 2023-07-11 19:39:23 +02:00
comedi Merge 6.2-rc5 into char-misc-next 2023-01-22 08:37:23 +01:00
connector
counter counter: 104-quad-8: Fix Synapse action reported for Index signals 2023-03-18 09:26:40 -04:00
cpufreq cpufreq: intel_pstate: Fix energy_performance_preference for passive 2023-07-11 19:39:24 +02:00
cpuidle RISC-V: Align SBI probe implementation with spec 2023-05-11 23:16:53 +09:00
crypto crypto: qat - unmap buffers before free for RSA 2023-07-11 19:39:50 +02:00
cxl cxl/region: Fix state transitions after reset failure 2023-07-11 19:39:50 +02:00
dax dax/kmem: Pass valid argument to memory_group_register_static 2023-07-11 19:39:50 +02:00
dca
devfreq PM / devfreq: event: use devm_platform_get_and_ioremap_resource() 2022-12-05 21:57:20 +09:00
dio
dma
dma-buf udmabuf: revert 'Add support for mapping hugepages (v4)' 2023-06-28 11:13:58 +02:00
edac EDAC/qcom: Get rid of hardcoded register offsets 2023-06-21 16:02:05 +02:00
eisa
extcon
firewire firewire: net: fix unexpected release of object for asynchronous request packet 2023-05-17 14:02:03 +02:00
firmware efi/libstub: Disable PCI DMA before grabbing the EFI memory map 2023-07-11 19:39:51 +02:00
fpga fpga: bridge: fix kernel-doc parameter description 2023-05-11 23:17:23 +09:00
fsi driver core: make struct device_type.devnode() take a const * 2023-01-27 13:45:38 +01:00
gnss driver core: make struct class.dev_uevent() take a const * 2022-11-24 17:12:15 +01:00
gpio gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain() 2023-06-28 11:14:18 +02:00
gpu drm/msm/dpu: correct MERGE_3D length 2023-07-11 19:39:43 +02:00
greybus
hid HID: uclogic: Modular KUnit tests should not depend on KUNIT=y 2023-07-11 19:39:41 +02:00
hsi
hte
hv Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-06-28 11:14:05 +02:00
hwmon hwmon: (pmbus/adm1275) Fix problems with temperature monitoring on ADM1272 2023-07-11 19:39:40 +02:00
hwspinlock
hwtracing coresight: perf: Release Coresight path when alloc trace id failed 2023-06-05 09:29:29 +02:00
i2c i2c: imx-lpi2c: fix type char overflow issue when calculating the clock cycle 2023-06-28 11:14:24 +02:00
i3c I3C for 6.3 2023-02-28 16:05:01 -08:00
idle
iio iio: dac: build ad5758 driver when AD5758 is selected 2023-06-09 10:48:15 +02:00
infiniband RDMA/bnxt_re: Avoid calling wake_up threads from spin_lock context 2023-07-11 19:39:41 +02:00
input Input: pm8941-powerkey - fix debounce on gen2+ PMICs 2023-07-11 19:39:39 +02:00
interconnect interconnect: qcom: rpm: drop bogus pm domain attach 2023-05-11 23:17:25 +09:00
iommu iommufd: Call iopt_area_contig_done() under the lock 2023-07-11 19:39:44 +02:00
ipack Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
irqchip irqchip/jcore-aic: Fix missing allocation of IRQ descriptors 2023-07-11 19:39:23 +02:00
isdn
leds
macintosh
mailbox mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() 2023-06-09 10:48:11 +02:00
mcb
md md/raid1-10: fix casting from randomized structure in raid1_submit_write() 2023-07-11 19:39:51 +02:00
media media: cec: core: don't set last_initiator if tx in progress 2023-06-28 11:14:19 +02:00
memory memory: brcmstb_dpfe: fix testing array offset after use 2023-07-11 19:39:38 +02:00
memstick memstick r592: make memstick_debug_get_tpc_name() static 2023-07-11 19:39:29 +02:00
message
mfd ARM/mfd/gpio: Fixup TPS65010 regression on OMAP1 OSK1 2023-07-11 19:39:36 +02:00
misc
mmc mmc: Add MMC_QUIRK_BROKEN_SD_CACHE for Kingston Canvas Go Plus from 11/2019 2023-07-11 19:39:30 +02:00
most
mtd
mux mux: Fix struct mux_state kernel-doc comment 2022-02-04 15:47:12 +01:00
net ipvlan: Fix return value of ipvlan_queue_xmit() 2023-07-11 19:39:32 +02:00
nfc nfcsim.c: Fix error checking for debugfs_create_dir 2023-06-28 11:14:19 +02:00
ntb
nubus nubus: Partially revert proc_create_single_data() conversion 2023-07-05 18:29:23 +01:00
nvdimm
nvme nvme-core: fix dev_pm_qos memleak 2023-07-11 19:39:22 +02:00
nvmem
of
opp
parisc
parport
pci PCI: vmd: Fix uninitialized variable usage in vmd_enable_domain() 2023-07-11 19:39:49 +02:00
pcmcia Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
peci peci: cpu: Fix use-after-free in adev_release() 2022-08-15 20:31:35 +02:00
perf perf/arm_cspmu: Fix event attribute type 2023-07-11 19:39:24 +02:00
phy
pinctrl pinctrl: at91-pio4: check return value of devm_kasprintf() 2023-07-11 19:39:48 +02:00
platform platform/x86:intel/pmc: Update maps for Meteor Lake P/M platforms 2023-07-11 19:39:48 +02:00
pnp PNP: Do not disable devices on suspend when they cannot be re-enabled on resume 2022-11-25 19:36:52 +01:00
power
powercap powercap: RAPL: Fix CONFIG_IOSF_MBI dependency 2023-07-11 19:39:24 +02:00
pps tty/serial: Make ->dcd_change()+uart_handle_dcd_change() status bool active 2023-01-19 16:04:35 +01:00
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-03-24 19:17:22 -07:00
pwm pwm: mtk-disp: Configure double buffering before reading in .get_state() 2023-05-11 23:17:35 +09:00
rapidio
ras RAS: Fix return value from show_trace() 2022-10-31 18:55:18 +01:00
regulator regulator: core: Streamline debugfs operations 2023-07-11 19:39:27 +02:00
remoteproc firmware: qcom_scm: Use fixed width src vm bitmap 2023-06-09 10:48:18 +02:00
reset
rpmsg rpmsg: glink: Propagate TX failures in intentless mode as well 2023-05-11 23:17:10 +09:00
rtc
s390 s390/cio: unregister device when the only path is gone 2023-06-28 11:14:20 +02:00
sbus
scsi scsi: lpfc: Revise NPIV ELS unsol rcv cmpl logic to drop ndlp based on nlp_state 2023-07-11 19:39:46 +02:00
sh
siox
slimbus driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
soc drivers: meson: secure-pwrc: always enable DMA domain 2023-07-11 19:39:44 +02:00
soundwire soundwire: qcom: add proper error paths in qcom_swrm_startup() 2023-06-28 11:14:21 +02:00
spi spi: dw: Round of n_bytes to power of 2 2023-07-11 19:39:27 +02:00
spmi
ssb driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
staging Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" 2023-06-14 11:17:05 +02:00
target scsi: target: iscsi: Prevent login threads from racing between each other 2023-06-28 11:14:18 +02:00
tc
tee tee: amdtee: Add return_origin to 'struct tee_cmd_load_ta' 2023-06-14 11:16:58 +02:00
thermal thermal/drivers/qoriq: Only enable supported sensors 2023-07-11 19:39:25 +02:00
thunderbolt thunderbolt: Mask ring interrupt on Intel hardware as well 2023-06-21 16:02:11 +02:00
tty tty: serial: fsl_lpuart: reduce RX watermark to 0 on LS1028A 2023-06-21 16:02:12 +02:00
ufs scsi: ufs: core: mcq: Fix the incorrect OCS value for the device command 2023-07-11 19:39:48 +02:00
uio - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
usb usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 11:14:19 +02:00
vdpa
vfio vfio/mdev: Move the compat_class initialization to module init 2023-07-11 19:39:49 +02:00
vhost vhost_net: revert upend_idx only on retriable error 2023-06-28 11:14:23 +02:00
video fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe() 2023-07-11 19:39:39 +02:00
virt virt: sevguest: Add CONFIG_CRYPTO dependency 2023-07-11 19:39:21 +02:00
virtio
vlynq
w1
watchdog
xen xen/pvcalls-back: fix double frees with pvcalls_new_active_socket() 2023-05-30 14:17:26 +01:00
zorro driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
Kconfig
Makefile