aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-12-16 19:56:30 +0200
committerBjorn Helgaas <bhelgaas@google.com>2025-02-18 15:40:54 -0600
commite89df6d2beae847e931d84a190b192dfac41eba7 (patch)
tree054cd391f633653a711a31a420819f667fa55ce9 /include/linux/compiler-gcc.h
parentPCI: Add debug print when releasing resources before retry (diff)
downloadwireguard-linux-e89df6d2beae847e931d84a190b192dfac41eba7.tar.xz
wireguard-linux-e89df6d2beae847e931d84a190b192dfac41eba7.zip
PCI: Use res->parent to check if resource is assigned
reassign_resources_sorted() uses resource_size() to select between pci_assign_resource() and pci_reassign_resource(). Due to twisted way bridge window sizing in pbus_size_mem() sets resource sizes to 0, it works to match into IOV resources but that is going to be changed by an upcoming change. Replace resource_size() check with res->parent check that is the true dividing line in between whether assign or reassign function should be used for the resource. Link: https://lore.kernel.org/r/20241216175632.4175-24-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Xiaochun Lee <lixc17@lenovo.com>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions