aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2014-04-25 13:46:12 -0400
committerH. Peter Anvin <hpa@zytor.com>2014-05-08 11:00:06 -0400
commita9a17104a112a67a7bf0679b734704c130eb5faa (patch)
tree90a20cd767f21b0526e4b151206c04e8c04d36c3
parent3d379225c458097d41d104b4f78f40ee97719333 (diff)
x86, boot: Remove misc.h inclusion from compressed/string.c
Given the fact that we removed inclusion of boot.h from boot/string.c does not look like we need misc.h inclusion in compressed/string.c. So remove it. misc.h was also pulling in string_32.h which in turn had macros for memcmp and memcpy. So we don't need to #undef memcmp and memcpy anymore. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Link: http://lkml.kernel.org/r/1398447972-27896-3-git-send-email-vgoyal@redhat.com Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--arch/x86/boot/compressed/string.c4
-rw-r--r--arch/x86/boot/string.c6
2 files changed, 0 insertions, 10 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
8void *memcpy(void *dest, const void *src, size_t n) 4void *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 aca52b83e31d..493f3fd9f139 100644
--- a/arch/x86/boot/string.c
+++ b/arch/x86/boot/string.c
@@ -15,12 +15,6 @@
15#include <linux/types.h> 15#include <linux/types.h>
16#include "ctype.h" 16#include "ctype.h"
17 17
18/*
19 * This file gets included in compressed/string.c which might pull in
20 * string_32.h and which in turn maps memcmp to __builtin_memcmp(). Undo
21 * that first.
22 */
23#undef memcmp
24int memcmp(const void *s1, const void *s2, size_t len) 18int memcmp(const void *s1, const void *s2, size_t len)
25{ 19{
26 u8 diff; 20 u8 diff;