linux/arch/s390/pci
Benjamin Block af241e6bfc s390/pci: Annotate lock context imbalance in zpci_release_device()
When checking `arch/s390/pci/pci.c` with `sparse` during build, the
following complaint is reported:

  arch/s390/pci/pci.c: note: in included file (through include/linux/smp.h, include/linux/lockdep.h, include/linux/spinlock.h, include/linux/mmzone.h, include/linux/gfp.h, include/linux/slab.h):
  ./include/linux/list.h:237:25: warning: context imbalance in 'zpci_release_device' - unexpected unlock

But this is expected, as zpci_release_device() is expected to be called
with `zpci_list_lock` held, as part of `kref_put_lock()` or similar.

Reflect this by annotating the function with the appropriate
__releases().

Signed-off-by: Benjamin Block <bblock@linux.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
History 2025-12-14 11:03:58 +01:00
..
Makefile s390/pci: Support mmap() of PCI resources except for ISM devices 2025-03-21 14:54:16 -05:00
pci.c s390/pci: Annotate lock context imbalance in zpci_release_device() 2025-12-14 11:03:58 +01:00
pci_bus.c s390/pci: Fix cyclic dead-lock in zpci_zdev_put() and zpci_scan_devices() 2025-12-14 11:03:58 +01:00
pci_bus.h s390/pci: Fix cyclic dead-lock in zpci_zdev_put() and zpci_scan_devices() 2025-12-14 11:03:58 +01:00
pci_clp.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
pci_debug.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
pci_event.c s390 updates for 6.19 merge window 2025-12-02 16:37:00 -08:00
pci_fixup.c s390/pci: Support mmap() of PCI resources except for ISM devices 2025-03-21 14:54:16 -05:00
pci_insn.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
pci_iov.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
pci_iov.h s390/pci: Fix handling of isolated VFs 2025-02-11 19:35:08 +01:00
pci_irq.c s390/pci: Migrate s390 IRQ logic to IRQ domain API 2025-12-07 16:15:23 +01:00
pci_kvm_hook.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
pci_mmio.c s390/pci: Fix __pcilg_mio_inuser() inline assembly 2025-05-21 12:02:27 +02:00
pci_report.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
pci_report.h s390/pci: Report PCI error recovery results via SCLP 2024-12-16 16:14:26 +01:00
pci_sysfs.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00