]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/pci: Add header guards and includes to internal headers
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 5 Nov 2024 16:28:16 +0000 (17:28 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 09:37:00 +0000 (10:37 +0100)
commitde786f0f83824eaa12aa92603be8655ec5d1a5bf
tree233f609cebbe70fc8b28da1eff559cfbfdc9a51b
parent03ab9b96959488175cbaa58bd50b9c4692a81c01
s390/pci: Add header guards and includes to internal headers

While pci_iov.h has include guards it doesn't include the necessary
header for struct zpci_dev, pci_bus.h on the other hand lacks even basic
include guards. This isn't only fragile and breaks convention but also
confuses tooling such as clang-analyzer. Add both include guards and the
necessary includes.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/pci/pci_bus.h
arch/s390/pci/pci_iov.h