summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-12-08 22:03:39 +0300
committerBjorn Helgaas <bhelgaas@google.com>2022-12-10 19:31:47 +0300
commit5c5fb3c3a793b34554e1d21f07cda34308b082cd (patch)
treecad77f65453e1d9ca31f87e474e2e9d6c1653d6a /scripts/generate_rust_analyzer.py
parent07eab0901ede8b7540c52160663bd300cc238164 (diff)
downloadlinux-5c5fb3c3a793b34554e1d21f07cda34308b082cd.tar.xz
PCI: Skip allocate_resource() if too little space available
pci_bus_alloc_from_region() allocates MMIO space by iterating through all the resources available on the bus. The available resource might be reduced if the caller requires 32-bit space or we're avoiding BIOS or E820 areas. Don't bother calling allocate_resource() if we need more space than is available in this resource. This prevents some pointless and annoying messages about avoided areas. Link: https://lore.kernel.org/r/20221208190341.1560157-3-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions