pciutils/pciutils-2.1.99-gcc4.patch
Petr Šabata 4a544e485f RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/pciutils#fe04a2970683045a6649bcb701a03576e02657c8
2020-10-15 23:02:10 +02:00

16 lines
926 B
Diff

diff -up pciutils-3.1.0/lib/i386-ports.c.glibcmacros pciutils-3.1.0/lib/i386-ports.c
--- pciutils-3.1.0/lib/i386-ports.c.glibcmacros 2008-11-21 22:00:38.000000000 +0100
+++ pciutils-3.1.0/lib/i386-ports.c 2009-01-20 10:43:04.766937947 +0100
@@ -72,9 +72,9 @@ intel_sanity_check(struct pci_access *a,
for (d.dev = 0; d.dev < 32; d.dev++)
{
u16 class, vendor;
- if (m->read(&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) &&
+ if ((m->read) (&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) &&
(class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST) || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA)) ||
- m->read(&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) &&
+ (m->read) (&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) &&
(vendor == cpu_to_le16(PCI_VENDOR_ID_INTEL) || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ)))
{
a->debug("...outside the Asylum at 0/%02x/0", d.dev);