Skip to content

Commit

Permalink
x86, setup: move isdigit.h to ctype.h, header files on top.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Aug 3, 2010
1 parent 8fee13a commit 6238b47
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions arch/x86/boot/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "bitops.h"
#include <asm/cpufeature.h>
#include <asm/processor-flags.h>
#include "ctype.h"

/* Useful macros */
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
Expand Down Expand Up @@ -200,8 +201,6 @@ static inline int memcmp_gs(const void *s1, addr_t s2, size_t len)
return diff;
}

#include "isdigit.h"

/* Heap -- available for dynamic lists. */
extern char _end[];
extern char *HEAP;
Expand Down
1 change: 1 addition & 0 deletions arch/x86/boot/compressed/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <asm/bootparam.h>

#define BOOT_BOOT_H
#include "../ctype.h"

/* misc.c */
extern struct boot_params *real_mode; /* Pointer to real-mode data */
Expand Down
2 changes: 0 additions & 2 deletions arch/x86/boot/compressed/string.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include "misc.h"

#include "../isdigit.h"
#include "../string.c"
File renamed without changes.

0 comments on commit 6238b47

Please sign in to comment.