diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-03 18:41:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-03 18:41:57 -0400 |
commit | e7a38766d2e691e8030b77c9b46b19c9359e0d6c (patch) | |
tree | 5d67dfd93e3320846324ca2f47c5dc6e8b9eebb7 /arch/x86/boot | |
parent | 3d1a3bda65d2f48fead6f0727f2f392c15206852 (diff) | |
parent | a9a17104a112a67a7bf0679b734704c130eb5faa (diff) |
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next
Pull x86 boot changes from Ingo Molnar:
"Two small cleanups"
* 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, boot: Remove misc.h inclusion from compressed/string.c
x86, boot: Do not include boot.h in string.c
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/compressed/string.c | 4 | ||||
-rw-r--r-- | arch/x86/boot/string.c | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/arch/x86/boot/compressed/string.c b/arch/x86/boot/compressed/string.c index f3c57e341402..00e788be1db9 100644 --- a/arch/x86/boot/compressed/string.c +++ b/arch/x86/boot/compressed/string.c | |||
@@ -1,9 +1,5 @@ | |||
1 | #include "misc.h" | ||
2 | #include "../string.c" | 1 | #include "../string.c" |
3 | 2 | ||
4 | /* misc.h might pull in string_32.h which has a macro for memcpy. undef that */ | ||
5 | #undef memcpy | ||
6 | |||
7 | #ifdef CONFIG_X86_32 | 3 | #ifdef CONFIG_X86_32 |
8 | void *memcpy(void *dest, const void *src, size_t n) | 4 | void *memcpy(void *dest, const void *src, size_t n) |
9 | { | 5 | { |
diff --git a/arch/x86/boot/string.c b/arch/x86/boot/string.c index 5339040ef86e..493f3fd9f139 100644 --- a/arch/x86/boot/string.c +++ b/arch/x86/boot/string.c | |||
@@ -12,14 +12,9 @@ | |||
12 | * Very basic string functions | 12 | * Very basic string functions |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "boot.h" | 15 | #include <linux/types.h> |
16 | #include "ctype.h" | ||
16 | 17 | ||
17 | /* | ||
18 | * This file gets included in compressed/string.c which might pull in | ||
19 | * string_32.h and which in turn maps memcmp to __builtin_memcmp(). Undo | ||
20 | * that first. | ||
21 | */ | ||
22 | #undef memcmp | ||
23 | int memcmp(const void *s1, const void *s2, size_t len) | 18 | int memcmp(const void *s1, const void *s2, size_t len) |
24 | { | 19 | { |
25 | u8 diff; | 20 | u8 diff; |