]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
pc-bios/s390-ccw: Introduce ENODEV define and remove guards of others
authorThomas Huth <thuth@redhat.com>
Wed, 5 Aug 2020 15:41:08 +0000 (17:41 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 6 Oct 2020 17:36:50 +0000 (19:36 +0200)
Remove the "#ifndef E..." guards from the defines here - the header
guard S390_CCW_H at the top of the file should avoid double definition,
and if the error code is defined in a different file already, we're in
trouble anyway, then it's better to see the error at compile time instead
of hunting weird behavior during runtime later.
Also define ENODEV - we will use this in a later patch.

Message-Id: <20200806105349.632-4-thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/s390-ccw.h

index 36b884ccedf2383d3302df76f73273c881a5c862..dbc4c648518c2ec2b0133007546e03d6cfa62b4e 100644 (file)
@@ -27,12 +27,10 @@ typedef unsigned long long __u64;
 #define false 0
 #define PAGE_SIZE 4096
 
-#ifndef EIO
 #define EIO     1
-#endif
-#ifndef EBUSY
 #define EBUSY   2
-#endif
+#define ENODEV  3
+
 #ifndef NULL
 #define NULL    0
 #endif