HomeFreeBSD

pci_dw: Drop unconditional explicit DEBUG define

Description

pci_dw: Drop unconditional explicit DEBUG define

This has been present since the first revision of the file. The debugf
macros have always been unused so it doesn't actually do anything
useful, and besides, debugging should not be unconditionally turned on
for a production driver. Moreover, this breaks the riscv LINT kernel
build as sys/conf/NOTES includes options DEBUG, resulting in a macro
redefinition error. This does not show up in the arm64 LINT kernel build
since that has an explicit nooptions DEBUG, which is dubious and should
be revisited. Rather than copy such a hack to riscv's NOTES, fix this
specific instance of DEBUG breaking.

Fixes: 896e217a0eae ("fu740_pci_dw: Add SiFive FU740 PCIe controller driver")
MFC after: 1 week

(cherry picked from commit 22997b755013bdde60119fdc781769192ab7e1e0)

Details

Provenance
jrtc27Authored on Aug 7 2021, 8:25 PM
Parents
rG902a992ffaac: gpio.4: Mention new sifive_gpio driver
Branches
Unknown
Tags
Unknown