diff options
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/kernel/vmlinux-std.lds | 8 | ||||
-rw-r--r-- | arch/m68k/kernel/vmlinux-sun3.lds | 8 | ||||
-rw-r--r-- | arch/m68k/lib/checksum.c | 13 |
3 files changed, 8 insertions, 21 deletions
diff --git a/arch/m68k/kernel/vmlinux-std.lds b/arch/m68k/kernel/vmlinux-std.lds index 69d1d3d30c78..d2794452b195 100644 --- a/arch/m68k/kernel/vmlinux-std.lds +++ b/arch/m68k/kernel/vmlinux-std.lds | |||
@@ -54,13 +54,7 @@ SECTIONS | |||
54 | __setup_end = .; | 54 | __setup_end = .; |
55 | __initcall_start = .; | 55 | __initcall_start = .; |
56 | .initcall.init : { | 56 | .initcall.init : { |
57 | *(.initcall1.init) | 57 | INITCALLS |
58 | *(.initcall2.init) | ||
59 | *(.initcall3.init) | ||
60 | *(.initcall4.init) | ||
61 | *(.initcall5.init) | ||
62 | *(.initcall6.init) | ||
63 | *(.initcall7.init) | ||
64 | } | 58 | } |
65 | __initcall_end = .; | 59 | __initcall_end = .; |
66 | __con_initcall_start = .; | 60 | __con_initcall_start = .; |
diff --git a/arch/m68k/kernel/vmlinux-sun3.lds b/arch/m68k/kernel/vmlinux-sun3.lds index 65cc39c24185..2550b4ae2732 100644 --- a/arch/m68k/kernel/vmlinux-sun3.lds +++ b/arch/m68k/kernel/vmlinux-sun3.lds | |||
@@ -48,13 +48,7 @@ __init_begin = .; | |||
48 | __setup_end = .; | 48 | __setup_end = .; |
49 | __initcall_start = .; | 49 | __initcall_start = .; |
50 | .initcall.init : { | 50 | .initcall.init : { |
51 | *(.initcall1.init) | 51 | INITCALLS |
52 | *(.initcall2.init) | ||
53 | *(.initcall3.init) | ||
54 | *(.initcall4.init) | ||
55 | *(.initcall5.init) | ||
56 | *(.initcall6.init) | ||
57 | *(.initcall7.init) | ||
58 | } | 52 | } |
59 | __initcall_end = .; | 53 | __initcall_end = .; |
60 | __con_initcall_start = .; | 54 | __con_initcall_start = .; |
diff --git a/arch/m68k/lib/checksum.c b/arch/m68k/lib/checksum.c index cb13c6e3ccae..aed3be29e06b 100644 --- a/arch/m68k/lib/checksum.c +++ b/arch/m68k/lib/checksum.c | |||
@@ -39,8 +39,7 @@ | |||
39 | * computes a partial checksum, e.g. for TCP/UDP fragments | 39 | * computes a partial checksum, e.g. for TCP/UDP fragments |
40 | */ | 40 | */ |
41 | 41 | ||
42 | unsigned int | 42 | __wsum csum_partial(const void *buff, int len, __wsum sum) |
43 | csum_partial (const unsigned char *buff, int len, unsigned int sum) | ||
44 | { | 43 | { |
45 | unsigned long tmp1, tmp2; | 44 | unsigned long tmp1, tmp2; |
46 | /* | 45 | /* |
@@ -133,9 +132,9 @@ EXPORT_SYMBOL(csum_partial); | |||
133 | * copy from user space while checksumming, with exception handling. | 132 | * copy from user space while checksumming, with exception handling. |
134 | */ | 133 | */ |
135 | 134 | ||
136 | unsigned int | 135 | __wsum |
137 | csum_partial_copy_from_user(const unsigned char __user *src, unsigned char *dst, | 136 | csum_partial_copy_from_user(const void __user *src, void *dst, |
138 | int len, int sum, int *csum_err) | 137 | int len, __wsum sum, int *csum_err) |
139 | { | 138 | { |
140 | /* | 139 | /* |
141 | * GCC doesn't like more than 10 operands for the asm | 140 | * GCC doesn't like more than 10 operands for the asm |
@@ -325,8 +324,8 @@ csum_partial_copy_from_user(const unsigned char __user *src, unsigned char *dst, | |||
325 | * copy from kernel space while checksumming, otherwise like csum_partial | 324 | * copy from kernel space while checksumming, otherwise like csum_partial |
326 | */ | 325 | */ |
327 | 326 | ||
328 | unsigned int | 327 | __wsum |
329 | csum_partial_copy_nocheck(const unsigned char *src, unsigned char *dst, int len, int sum) | 328 | csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) |
330 | { | 329 | { |
331 | unsigned long tmp1, tmp2; | 330 | unsigned long tmp1, tmp2; |
332 | __asm__("movel %2,%4\n\t" | 331 | __asm__("movel %2,%4\n\t" |