Commit a648bd0c authored by David Howells's avatar David Howells

UAPI: Make linux/patchkey.h easier to parse

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: default avatarDavid Howells <dhowells@redhat.com>
parent e9356f4d
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
# else # else
# error "could not determine byte order" # error "could not determine byte order"
# endif # endif
#elif defined(__BYTE_ORDER) #else
#if defined(__BYTE_ORDER)
# if __BYTE_ORDER == __BIG_ENDIAN # if __BYTE_ORDER == __BIG_ENDIAN
# define _PATCHKEY(id) (0xfd00|id) # define _PATCHKEY(id) (0xfd00|id)
# elif __BYTE_ORDER == __LITTLE_ENDIAN # elif __BYTE_ORDER == __LITTLE_ENDIAN
...@@ -41,5 +42,6 @@ ...@@ -41,5 +42,6 @@
# error "could not determine byte order" # error "could not determine byte order"
# endif # endif
#endif #endif
#endif
#endif /* _LINUX_PATCHKEY_H */ #endif /* _LINUX_PATCHKEY_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment