diff options
author | David Howells <dhowells@redhat.com> | 2006-07-10 07:44:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 16:24:21 -0400 |
commit | 9dec17eb577169f78d642c5424e4264186d27115 (patch) | |
tree | 76cff4c5a8a6d255bc457392057e775d71ff5532 /arch/frv/kernel/process.c | |
parent | 1aeb21d626327ee909fef03f72aea6e8a60e6c0c (diff) |
[PATCH] FRV: Fix FRV arch compile errors
Fix some FRV arch compile errors, including:
(*) Marking nr_kernel_pages as __meminitdata so that references to it end up
being properly calculated rather than being assumed to be in the small
data section (and thus calculated wrt the GP register). Not doing this
causes the linker to emit errors as the offset is too big to fit into the
load instruction.
(*) Move pm_power_off into an unconditionally compiled .c file as it's now
unconditionally accessed.
(*) Declare frv_change_cmode() in a header file rather than in a .c file, and
declare it asmlinkage.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv/kernel/process.c')
-rw-r--r-- | arch/frv/kernel/process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/frv/kernel/process.c b/arch/frv/kernel/process.c index eeeb1e2641d5..ecdeafb2fdce 100644 --- a/arch/frv/kernel/process.c +++ b/arch/frv/kernel/process.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * 2 of the License, or (at your option) any later version. | 10 | * 2 of the License, or (at your option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/module.h> | ||
13 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
14 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
15 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
@@ -38,6 +39,9 @@ asmlinkage void ret_from_fork(void); | |||
38 | 39 | ||
39 | #include <asm/pgalloc.h> | 40 | #include <asm/pgalloc.h> |
40 | 41 | ||
42 | void (*pm_power_off)(void); | ||
43 | EXPORT_SYMBOL(pm_power_off); | ||
44 | |||
41 | struct task_struct *alloc_task_struct(void) | 45 | struct task_struct *alloc_task_struct(void) |
42 | { | 46 | { |
43 | struct task_struct *p = kmalloc(THREAD_SIZE, GFP_KERNEL); | 47 | struct task_struct *p = kmalloc(THREAD_SIZE, GFP_KERNEL); |