summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-08-05 14:03:43 +0200
committerThierry Reding <treding@nvidia.com>2014-08-07 17:00:21 +0200
commit11fa42742656ef0d2223e63120669f078d0d522e (patch)
tree93a4d629ed8bc0327807912638f6a8c0aafbe507
parentca1c1b0789bee4f26c9622d2d68547c352ed7280 (diff)
PCI/AER: Make linux/aer.h standalone includable
The header file references u16, u32 and struct pci_dev 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) and by adding a forward-declaration of struct pci_dev. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--include/linux/aer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h
index c826d1c28f9c..64e79766568b 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -7,6 +7,10 @@
#ifndef _AER_H_
#define _AER_H_
+#include <linux/types.h>
+
+struct pci_dev;
+
#define AER_NONFATAL 0
#define AER_FATAL 1
#define AER_CORRECTABLE 2