Skip to content

pci: fix multiple definition error when CONFIG_RHEL_DIFFERENCES is not set

Joel Savitz requested to merge jsavitz/centos-stream-9:nonstatic_fix into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2053991 Upstream Status: RHEL-only

when CONFIG_RHEL_DIFFERENCES is not set, pci_hw_disabled() is defined in include/linux/pci.h as a non-static function. Since multiple files include this header, this results in multiple definition errors at link-time.

Add the static tag to fix this, and add the inline tag for consistency with neighboring function definitions.

Signed-off-by: Joel Savitz jsavitz@redhat.com

Merge request reports