diff options
author | David Howells <dhowells@redhat.com> | 2006-07-10 04:44:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 13:24:21 -0700 |
commit | 9dec17eb577169f78d642c5424e4264186d27115 (patch) | |
tree | 76cff4c5a8a6d255bc457392057e775d71ff5532 /include | |
parent | 1aeb21d626327ee909fef03f72aea6e8a60e6c0c (diff) | |
download | kernel_samsung_smdk4412-9dec17eb577169f78d642c5424e4264186d27115.tar.gz kernel_samsung_smdk4412-9dec17eb577169f78d642c5424e4264186d27115.tar.bz2 kernel_samsung_smdk4412-9dec17eb577169f78d642c5424e4264186d27115.zip |
[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 'include')
-rw-r--r-- | include/linux/bootmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 22866fa2d96..1021f508d82 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h @@ -91,7 +91,7 @@ static inline void *alloc_remap(int nid, unsigned long size) } #endif -extern unsigned long nr_kernel_pages; +extern unsigned long __meminitdata nr_kernel_pages; extern unsigned long nr_all_pages; extern void *__init alloc_large_system_hash(const char *tablename, |