Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Remove unused pci_request_region_exclusive()

pci_request_region_exclusive() was introduced with commit e8de1481fd71
("resource: allow MMIO exclusivity for device drivers") in 2.6.29 which
was released 2008.

It never had an in tree user since then, so after 11 years later let's
remove it.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Johannes Thumshirn and committed by
Bjorn Helgaas
804ee5be 296bd5ae

-26
-25
drivers/pci/pci.c
··· 3707 3707 EXPORT_SYMBOL(pci_request_region); 3708 3708 3709 3709 /** 3710 - * pci_request_region_exclusive - Reserved PCI I/O and memory resource 3711 - * @pdev: PCI device whose resources are to be reserved 3712 - * @bar: BAR to be reserved 3713 - * @res_name: Name to be associated with resource. 3714 - * 3715 - * Mark the PCI region associated with PCI device @pdev BR @bar as 3716 - * being reserved by owner @res_name. Do not access any 3717 - * address inside the PCI regions unless this call returns 3718 - * successfully. 3719 - * 3720 - * Returns 0 on success, or %EBUSY on error. A warning 3721 - * message is also printed on failure. 3722 - * 3723 - * The key difference that _exclusive makes it that userspace is 3724 - * explicitly not allowed to map the resource via /dev/mem or 3725 - * sysfs. 3726 - */ 3727 - int pci_request_region_exclusive(struct pci_dev *pdev, int bar, 3728 - const char *res_name) 3729 - { 3730 - return __pci_request_region(pdev, bar, res_name, IORESOURCE_EXCLUSIVE); 3731 - } 3732 - EXPORT_SYMBOL(pci_request_region_exclusive); 3733 - 3734 - /** 3735 3710 * pci_release_selected_regions - Release selected PCI I/O and memory resources 3736 3711 * @pdev: PCI device whose resources were previously reserved 3737 3712 * @bars: Bitmask of BARs to be released
-1
include/linux/pci.h
··· 1233 1233 int __must_check pci_request_regions_exclusive(struct pci_dev *, const char *); 1234 1234 void pci_release_regions(struct pci_dev *); 1235 1235 int __must_check pci_request_region(struct pci_dev *, int, const char *); 1236 - int __must_check pci_request_region_exclusive(struct pci_dev *, int, const char *); 1237 1236 void pci_release_region(struct pci_dev *, int); 1238 1237 int pci_request_selected_regions(struct pci_dev *, int, const char *); 1239 1238 int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *);