Skip to content

Commit efd01a7

Browse files
thierryredingbjorn-helgaas
authored andcommitted
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 5ccb822)] Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 3b7f101 commit efd01a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/aer.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef _AER_H_
88
#define _AER_H_
99

10+
#include <linux/types.h>
11+
1012
#define AER_NONFATAL 0
1113
#define AER_FATAL 1
1214
#define AER_CORRECTABLE 2

0 commit comments

Comments
 (0)