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)
Sun, Sep 28, 7:16 AM
Unknown Object (File)
Tue, Sep 23, 9:32 AM
Unknown Object (File)
Thu, Sep 18, 6:54 AM
Unknown Object (File)
Thu, Sep 18, 6:54 AM
Unknown Object (File)
Wed, Sep 17, 10:11 PM
Unknown Object (File)
Sep 9 2025, 6:46 PM
Unknown Object (File)
Sep 2 2025, 5:14 PM
Unknown Object (File)
Aug 30 2025, 7:48 PM
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