From: Sudip Mukherjee Date: Wed, 23 Dec 2015 15:35:26 +0000 (+0530) Subject: PCI/AER: include header file X-Git-Tag: v4.1.12-102.0.20170601_1400~52 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eb0cf52e9820d8ea9a82b88f90917d99105f94a4;p=users%2Fjedix%2Flinux-maple.git PCI/AER: include header file We are having build failure with sparc allmodconfig with the error: drivers/nvme/host/pci.c:15:0: include/linux/aer.h: In function 'pci_enable_pcie_error_reporting': include/linux/aer.h:49:10: error: 'EINVAL' undeclared (first use in this function) The file aer.h is using the error values but they are defined in errno.h. Include errno.h so that we have the definitions of the error codes. Fixes: a0a3408ee614 ("NVMe: Add pci error handlers") Cc: Keith Busch Signed-off-by: Sudip Mukherjee Signed-off-by: Jens Axboe Orabug: 25130845 Signed-off-by: Ashok Vairavan Reviewed-by: Martin K. Petersen --- diff --git a/include/linux/aer.h b/include/linux/aer.h index 4fef65e570239..4ba7926449aa6 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -7,6 +7,7 @@ #ifndef _AER_H_ #define _AER_H_ +#include #include #define AER_NONFATAL 0