Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI/AER: Make <linux/aer.h> standalone includable

The header file references u16 and u32 types, but they are not defined in
the header nor does the header pull in the necessary includes for them.
This causes build breakage when the file is included without any of the
dependencies being satisfied from somewhere else.

Fix this by including linux/types.h (for u16 and u32).

[bhelgaas: removed pci_dev declaration (already added by 5ccb8225abf2)]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Thierry Reding and committed by
Bjorn Helgaas
e0d1b6b7 3b7f1016

+2
+2
include/linux/aer.h
··· 7 7 #ifndef _AER_H_ 8 8 #define _AER_H_ 9 9 10 + #include <linux/types.h> 11 + 10 12 #define AER_NONFATAL 0 11 13 #define AER_FATAL 1 12 14 #define AER_CORRECTABLE 2