Page MenuHomeFreeBSD

pci: Fix pci_host_generic_acpi with gcc
ClosedPublic

Authored by andrew on May 20 2024, 12:00 PM.
Tags
None
Referenced Files
F102727784: D45265.id138766.diff
Sat, Nov 16, 10:49 AM
Unknown Object (File)
Mon, Nov 11, 3:32 PM
Unknown Object (File)
Fri, Nov 8, 5:14 PM
Unknown Object (File)
Tue, Nov 5, 9:00 AM
Unknown Object (File)
Sun, Oct 27, 7:05 PM
Unknown Object (File)
Sun, Oct 27, 7:00 PM
Unknown Object (File)
Oct 16 2024, 12:02 PM
Unknown Object (File)
Oct 16 2024, 10:37 AM
Subscribers
None

Details

Summary

In pci_host_generic_acpi.c we loop over pci_acpi_quirks to check if
we need to handle any quirks. GCC doesn't like the terminatin as it
sets a fixed width string to 0.

As this the array is only ever used in this file change to use nitems
to find when to stop the loop.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable