]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
UAPI: Make linux/patchkey.h easier to parse
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Dec 2011 15:07:49 +0000 (15:07 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 Dec 2011 15:07:49 +0000 (15:07 +0000)
Make linux/patchkey.h easier to parse by making the #elif case associated with
the __KERNEL__ guard a nested #if in a #else of the __KERNEL__ guard.

Signed-off-by: David Howells <dhowells@redhat.com>
include/linux/patchkey.h

index d974a6e923721c05c457cfd5ba5147db9746497a..aefda0ec6e627d26d8ec7394f26d5aa01f0d37fd 100644 (file)
@@ -32,7 +32,8 @@
 #  else
 #    error "could not determine byte order"
 #  endif
-#elif defined(__BYTE_ORDER)
+#else
+#if defined(__BYTE_ORDER)
 #  if __BYTE_ORDER == __BIG_ENDIAN
 #    define _PATCHKEY(id) (0xfd00|id)
 #  elif __BYTE_ORDER == __LITTLE_ENDIAN
@@ -41,5 +42,6 @@
 #    error "could not determine byte order"
 #  endif
 #endif
+#endif
 
 #endif /* _LINUX_PATCHKEY_H */