Skip to content

Commit

Permalink
UAPI: Make linux/patchkey.h easier to parse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells committed Dec 13, 2011
1 parent e9356f4 commit a648bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/linux/patchkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,5 +42,6 @@
# error "could not determine byte order"
# endif
#endif
#endif

#endif /* _LINUX_PATCHKEY_H */

0 comments on commit a648bd0

Please sign in to comment.