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
F97569453: D45265.id.diff
Mon, Sep 30, 3:06 AM
F97495486: D45265.diff
Sun, Sep 29, 5:32 PM
Unknown Object (File)
Sat, Sep 28, 2:02 PM
Unknown Object (File)
Wed, Sep 25, 8:43 PM
Unknown Object (File)
Wed, Sep 25, 2:34 PM
Unknown Object (File)
Tue, Sep 24, 5:20 PM
Unknown Object (File)
Sun, Sep 22, 3:04 PM
Unknown Object (File)
Sun, Sep 22, 1:24 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57779
Build 54667: arc lint + arc unit