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)
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)
Thu, Aug 13, 5:57 PM
Unknown Object (File)
Wed, Aug 5, 2:33 AM
Unknown Object (File)
Tue, Aug 4, 9:11 AM
Unknown Object (File)
Tue, Aug 4, 7:25 AM
Unknown Object (File)
Mon, Aug 3, 6:38 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