OSDN Git Service

PCI/AER: Make <linux/aer.h> standalone includable
authorThierry Reding <treding@nvidia.com>
Tue, 5 Aug 2014 12:08:55 +0000 (14:08 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Sep 2014 21:54:29 +0000 (15:54 -0600)
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>
include/linux/aer.h

index c826d1c..4fef65e 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _AER_H_
 #define _AER_H_
 
+#include <linux/types.h>
+
 #define AER_NONFATAL                   0
 #define AER_FATAL                      1
 #define AER_CORRECTABLE                        2