aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-28 13:37:40 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-28 13:37:40 -0500
commit85fe20bfd415af0a2e93bd1166533d4a6eb591ea (patch)
tree10b0e485712859327f0c800491fb787a1859f0b6 /arch/x86/boot
parent58f02db466900003b801bdfdeddc4d96ce42b7d5 (diff)
parent1c5b9069e12e20d2fe883076ae0bf73966492108 (diff)
Merge branch 'x86-io-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-io-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Merge io.h x86: Simplify flush_write_buffers() x86: Clean up mem*io functions. x86-64: Use BUILDIO in io_64.h x86-64: Reorganize io_64.h x86-32: Remove _local variants of in/out from io_32.h x86-32: Move XQUAD definitions to numaq.h
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/compressed/misc.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index 3b22fe8ab91b..88042e812d3c 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -19,11 +19,6 @@
19#define _ASM_X86_DESC_H 1 19#define _ASM_X86_DESC_H 1
20#endif 20#endif
21 21
22#ifdef CONFIG_X86_64
23#define _LINUX_STRING_H_ 1
24#define __LINUX_BITMAP_H 1
25#endif
26
27#include <linux/linkage.h> 22#include <linux/linkage.h>
28#include <linux/screen_info.h> 23#include <linux/screen_info.h>
29#include <linux/elf.h> 24#include <linux/elf.h>
@@ -131,8 +126,8 @@ static void error(char *m);
131static struct boot_params *real_mode; /* Pointer to real-mode data */ 126static struct boot_params *real_mode; /* Pointer to real-mode data */
132static int quiet; 127static int quiet;
133 128
134static void *memset(void *s, int c, unsigned n); 129void *memset(void *s, int c, size_t n);
135void *memcpy(void *dest, const void *src, unsigned n); 130void *memcpy(void *dest, const void *src, size_t n);
136 131
137static void __putstr(int, const char *); 132static void __putstr(int, const char *);
138#define putstr(__x) __putstr(0, __x) 133#define putstr(__x) __putstr(0, __x)
@@ -223,7 +218,7 @@ static void __putstr(int error, const char *s)
223 outb(0xff & (pos >> 1), vidport+1); 218 outb(0xff & (pos >> 1), vidport+1);
224} 219}
225 220
226static void *memset(void *s, int c, unsigned n) 221void *memset(void *s, int c, size_t n)
227{ 222{
228 int i; 223 int i;
229 char *ss = s; 224 char *ss = s;
@@ -233,7 +228,7 @@ static void *memset(void *s, int c, unsigned n)
233 return s; 228 return s;
234} 229}
235 230
236void *memcpy(void *dest, const void *src, unsigned n) 231void *memcpy(void *dest, const void *src, size_t n)
237{ 232{
238 int i; 233 int i;
239 const char *s = src; 234 const char *s = src;