yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-pc-bios-s390-ccw-Introduce-ENODEV-define-and-remove-.patch

8fced6
From 7b3a7cbfc5872e088f13e11f5c38dc5ac80c3330 Mon Sep 17 00:00:00 2001
8fced6
From: Thomas Huth <thuth@redhat.com>
8fced6
Date: Fri, 9 Oct 2020 10:08:43 -0400
8fced6
Subject: [PATCH 07/14] pc-bios/s390-ccw: Introduce ENODEV define and remove
8fced6
 guards of others
8fced6
8fced6
RH-Author: Thomas Huth <thuth@redhat.com>
8fced6
Message-id: <20201009100849.264994-4-thuth@redhat.com>
8fced6
Patchwork-id: 98597
8fced6
O-Subject: [RHEL-8.4.0 qemu-kvm PATCH 3/9] pc-bios/s390-ccw: Introduce ENODEV define and remove guards of others
8fced6
Bugzilla: 1846975
8fced6
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
8fced6
RH-Acked-by: David Hildenbrand <david@redhat.com>
8fced6
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
8fced6
8fced6
Remove the "#ifndef E..." guards from the defines here - the header
8fced6
guard S390_CCW_H at the top of the file should avoid double definition,
8fced6
and if the error code is defined in a different file already, we're in
8fced6
trouble anyway, then it's better to see the error at compile time instead
8fced6
of hunting weird behavior during runtime later.
8fced6
Also define ENODEV - we will use this in a later patch.
8fced6
8fced6
Message-Id: <20200806105349.632-4-thuth@redhat.com>
8fced6
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
8fced6
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
8fced6
Signed-off-by: Thomas Huth <thuth@redhat.com>
8fced6
(cherry picked from commit f3180b0266386b31deb7bb83fcaea68af7d1bcee)
8fced6
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
8fced6
---
8fced6
 pc-bios/s390-ccw/s390-ccw.h | 6 ++----
8fced6
 1 file changed, 2 insertions(+), 4 deletions(-)
8fced6
8fced6
diff --git a/pc-bios/s390-ccw/s390-ccw.h b/pc-bios/s390-ccw/s390-ccw.h
8fced6
index 21f27e7990..ae432c40b8 100644
8fced6
--- a/pc-bios/s390-ccw/s390-ccw.h
8fced6
+++ b/pc-bios/s390-ccw/s390-ccw.h
8fced6
@@ -27,12 +27,10 @@ typedef unsigned long long __u64;
8fced6
 #define false 0
8fced6
 #define PAGE_SIZE 4096
8fced6
 
8fced6
-#ifndef EIO
8fced6
 #define EIO     1
8fced6
-#endif
8fced6
-#ifndef EBUSY
8fced6
 #define EBUSY   2
8fced6
-#endif
8fced6
+#define ENODEV  3
8fced6
+
8fced6
 #ifndef NULL
8fced6
 #define NULL    0
8fced6
 #endif
8fced6
-- 
8fced6
2.27.0
8fced6