]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI/AER: include header file
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 23 Dec 2015 15:35:26 +0000 (21:05 +0530)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:35 +0000 (13:41 -0700)
commiteb0cf52e9820d8ea9a82b88f90917d99105f94a4
tree26e33af471b1d2fac8224f3c4eb486e2e9b6a1f5
parent9b1e6d340cf627701ab000189457a798c4af6fd1
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 <keith.busch@intel.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
include/linux/aer.h