- Mark expected switch fall-throughs (Gustavo A. R. Silva) - Remove unused pci_request_region_exclusive() (Johannes Thumshirn) - Fix x86 PCI IRQ routing table memory leak (Wenwen Wang) - Reset Lenovo ThinkPad P50 if firmware didn't do it on reboot (Lyude Paul) - Add and use pci_dev_id() helper to simplify PCI_DEVID() usage (touches several places outside drivers/pci/) (Heiner Kallweit) - Transition Mobiveil PCI maintenance to Karthikeyan M and Hou Zhiqiang (Subrahmanya Lingappa) * pci/misc: MAINTAINERS: Add Karthikeyan Mitran and Hou Zhiqiang for Mobiveil PCI platform/chrome: chromeos_laptop: use pci_dev_id() helper stmmac: pci: Use pci_dev_id() helper iommu/vt-d: Use pci_dev_id() helper iommu/amd: Use pci_dev_id() helper drm/amdkfd: Use pci_dev_id() helper powerpc/powernv/npu: Use pci_dev_id() helper r8169: use pci_dev_id() helper PCI: Add pci_dev_id() helper PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary x86/PCI: Fix PCI IRQ routing table memory leak PCI: Remove unused pci_request_region_exclusive() PCI: Mark expected switch fall-throughs
Showing the changes to include/linux (1 of 17 files). Show all
Unified · Split
| @@ -598,6 +598,11 @@ struct pci_bus { · 597 unmodified lines | ||
| 598 | 598 | |
| 599 | 599 | #define to_pci_bus(n) container_of(n, struct pci_bus, dev) |
| 600 | 600 | |
| 601 | +static inline u16 pci_dev_id(struct pci_dev *dev) | |
| 602 | +{ | |
| 603 | + return PCI_DEVID(dev->bus->number, dev->devfn); | |
| 604 | +} | |
| 605 | + | |
| 601 | 606 | /* |
| 602 | 607 | * Returns true if the PCI bus is root (behind host-PCI bridge), |
| 603 | 608 | * false otherwise |
| @@ -1235,7 +1240,6 @@ int __must_check pci_request_regions(struct pci_dev *, const char *); · 631 unmodified lines | ||
| 1235 | 1240 | int __must_check pci_request_regions_exclusive(struct pci_dev *, const char *); |
| 1236 | 1241 | void pci_release_regions(struct pci_dev *); |
| 1237 | 1242 | int __must_check pci_request_region(struct pci_dev *, int, const char *); |
| 1238 | −int __must_check pci_request_region_exclusive(struct pci_dev *, int, const char *); | |
| 1239 | 1243 | void pci_release_region(struct pci_dev *, int); |
| 1240 | 1244 | int pci_request_selected_regions(struct pci_dev *, int, const char *); |
| 1241 | 1245 | int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *); |