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
Unknown Object (File)
Fri, Sep 11, 6:48 PM
Unknown Object (File)
Thu, Sep 3, 1:39 PM
Unknown Object (File)
Sat, Aug 22, 5:47 AM
Unknown Object (File)
Wed, Aug 19, 6:28 PM
Unknown Object (File)
Wed, Aug 19, 8:55 AM
Unknown Object (File)
Aug 13 2026, 5:57 PM
Unknown Object (File)
Aug 5 2026, 2:33 AM
Unknown Object (File)
Aug 4 2026, 9:11 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