Commit a648bd0c9f613d8f9954eccff6009ecfb26e2722

Authored by David Howells
1 parent e9356f4da3

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: David Howells <dhowells@redhat.com>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

include/linux/patchkey.h
... ... @@ -32,7 +32,8 @@
32 32 # else
33 33 # error "could not determine byte order"
34 34 # endif
35   -#elif defined(__BYTE_ORDER)
  35 +#else
  36 +#if defined(__BYTE_ORDER)
36 37 # if __BYTE_ORDER == __BIG_ENDIAN
37 38 # define _PATCHKEY(id) (0xfd00|id)
38 39 # elif __BYTE_ORDER == __LITTLE_ENDIAN
... ... @@ -40,6 +41,7 @@
40 41 # else
41 42 # error "could not determine byte order"
42 43 # endif
  44 +#endif
43 45 #endif
44 46  
45 47 #endif /* _LINUX_PATCHKEY_H */