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)
Tue, Dec 3, 5:54 AM
Unknown Object (File)
Mon, Dec 2, 12:35 PM
Unknown Object (File)
Thu, Nov 28, 9:23 AM
Unknown Object (File)
Nov 25 2024, 1:59 AM
Unknown Object (File)
Nov 24 2024, 1:48 PM
Unknown Object (File)
Nov 22 2024, 10:34 PM
Unknown Object (File)
Nov 22 2024, 9:00 AM
Unknown Object (File)
Nov 21 2024, 10:06 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