mirror-linux/drivers/misc
Catalin Marinas f4ea8e05f2 lkdtm/bugs: Do not confuse the clang/objtool with busy wait loop
Since commit eb972eab07 ("lkdtm/bugs: Add cases for BUG and PANIC
occurring in hardirq context"), building with clang for x86_64 results
in the following warnings:

vmlinux.o: warning: objtool: lkdtm_PANIC_IN_HARDIRQ(): unexpected end of section .text.lkdtm_PANIC_IN_HARDIRQ
vmlinux.o: warning: objtool: lkdtm_BUG_IN_HARDIRQ(): unexpected end of section .text.lkdtm_BUG_IN_HARDIRQ

caused by busy "while (wait_for_...);" loops. Add READ_ONCE() and
cpu_relax() to better indicate the intention and avoid any unwanted
compiler optimisations.

Fixes: eb972eab07 ("lkdtm/bugs: Add cases for BUG and PANIC occurring in hardirq context")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512190111.jxFSqxUH-lkp@intel.com/
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2025-12-19 15:09:09 +00:00
..
altera-stapl
amd-sbi Merge 6.18-rc3 into char-misc-next 2025-10-27 07:48:19 +01:00
bcm-vk
c2port
cardreader Char/Misc/IIO/Binder changes for 6.18-rc1 2025-10-04 16:26:32 -07:00
cb710 misc: cb710: Fix a NULL vs IS_ERR() check in probe() 2025-11-26 15:09:34 +01:00
eeprom eeprom: at25: fram: Fix chip range in comment 2025-10-22 07:59:57 +02:00
genwqe
ibmasm ibmasmfs: get rid of ibmasmfs_dir_ops 2025-11-16 01:35:04 -05:00
keba
lis3lv02d misc: lis3lv02d: Use min to simplify lis3lv02d_misc_read 2025-10-22 07:59:57 +02:00
lkdtm lkdtm/bugs: Do not confuse the clang/objtool with busy wait loop 2025-12-19 15:09:09 +00:00
mchp_pci1xxxx
mei Char/Misc/IIO driver updates for 6.19-rc1 2025-12-06 18:34:24 -08:00
ocxl powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
pvpanic
rp1 misc: rp1: Fix an error handling path in rp1_probe() 2025-11-26 15:09:49 +01:00
sgi-gru
sgi-xp
uacce
vmw_vmci vmw_vmci: fix typo in comment 2025-10-22 07:54:15 +02:00
Kconfig scsi: ufs: core: Fix RPMB link error by reversing Kconfig dependencies 2025-12-03 01:33:10 -05:00
Makefile
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c
bh1770glc.c misc: bh1770glc: use pm_runtime_resume_and_get() in power_state_store 2025-11-26 15:09:37 +01:00
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
dw-xdata-pcie.c
enclosure.c
fastrpc.c misc: fastrpc: Fix dma_buf object leak in fastrpc_map_lookup 2025-10-22 08:03:24 +02:00
gehc-achc.c
hi6421v600-irq.c
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
kgdbts.c
lan966x_pci.c
lan966x_pci.dtso
lattice-ecp3-config.c
mrvl_cn10k_dpi.c
nsm.c
ntsync.c ntsync: convert ntsync_obj_get_fd() to FD_PREPARE() 2025-11-28 12:42:36 +01:00
open-dice.c
pch_phub.c
pci_endpoint_test.c
phantom.c
qcom-coincell.c
rpmb-core.c
smpro-errmon.c
smpro-misc.c
sram-exec.c
sram.c
sram.h
ti_fpc202.c
tifm_7xx1.c
tifm_core.c
tps6594-esm.c
tps6594-pfsm.c
tsl2550.c
vcpu_stall_detector.c
vmw_balloon.c vmw_balloon: indicate success when effectively deflating during migration 2025-10-21 15:46:17 -07:00
xilinx_sdfec.c
xilinx_tmr_inject.c
xilinx_tmr_manager.c