Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -1
+3 -1
include/linux/patchkey.h
··· 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 ··· 41 40 # else 42 41 # error "could not determine byte order" 43 42 # endif 43 + #endif 44 44 #endif 45 45 46 46 #endif /* _LINUX_PATCHKEY_H */