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)
Thu, May 30, 11:45 PM
Unknown Object (File)
May 22 2024, 8:09 PM
Unknown Object (File)
May 22 2024, 6:28 PM
Unknown Object (File)
May 22 2024, 5:29 PM
Unknown Object (File)
May 22 2024, 1:14 PM
Unknown Object (File)
May 22 2024, 12:28 PM
Unknown Object (File)
May 22 2024, 11:27 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57779
Build 54667: arc lint + arc unit