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

x86, setup: move isdigit.h to ctype.h, header files on top.

It is a subset of <ctype.h> functionality, so name it ctype.h. Also,
reorganize header files so #include statements are clustered near the
top as they should be.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <4C5752F2.8030206@kernel.org>

+2 -4
+1 -2
arch/x86/boot/boot.h
··· 28 28 #include "bitops.h" 29 29 #include <asm/cpufeature.h> 30 30 #include <asm/processor-flags.h> 31 + #include "ctype.h" 31 32 32 33 /* Useful macros */ 33 34 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) ··· 200 199 : "=qm" (diff), "+D" (s1), "+S" (s2), "+c" (len)); 201 200 return diff; 202 201 } 203 - 204 - #include "isdigit.h" 205 202 206 203 /* Heap -- available for dynamic lists. */ 207 204 extern char _end[];
+1
arch/x86/boot/compressed/misc.h
··· 20 20 #include <asm/bootparam.h> 21 21 22 22 #define BOOT_BOOT_H 23 + #include "../ctype.h" 23 24 24 25 /* misc.c */ 25 26 extern struct boot_params *real_mode; /* Pointer to real-mode data */
-2
arch/x86/boot/compressed/string.c
··· 1 1 #include "misc.h" 2 - 3 - #include "../isdigit.h" 4 2 #include "../string.c"
arch/x86/boot/isdigit.h arch/x86/boot/ctype.h