From 451b4180c18722b11047ba6c7554e24dde0004f9 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 13 Apr 2021 10:35:59 +0100 Subject: dma: use ERROR_INT() The first in a series excising the use of the "return -errno" idiom. This is a non-standard usage, and in userspace, we have "errno" for delivering side-band error values. As there have been multiple bugs from not using standard error return methods like -1+errno or NULL+errno, let's do that. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- lib/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/pci.c') diff --git a/lib/pci.c b/lib/pci.c index 39470d9..54e90f9 100644 --- a/lib/pci.c +++ b/lib/pci.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include -- cgit v1.1