diff options
author | David Howells <dhowells@redhat.com> | 2012-11-02 09:20:42 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-11-02 09:20:42 -0400 |
commit | eded09ccf58ab00474ccde547dd525c75dbc28fd (patch) | |
tree | 3a4f1ce5c0679cc2573aeaa80a088f3074734cf4 /init/main.c | |
parent | 5f0231d97b2d361292b090b81479a68123010376 (diff) |
FRV: gcc-4.1.2 also inlines weak functions
gcc-4.1.2 inlines weak functions, which causes FRV to fail when the dummy
thread_info_cache_init() gets inlined into start_kernel().
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 9cf77ab138a6..e33e09df3cbc 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -442,9 +442,11 @@ void __init __weak smp_setup_processor_id(void) | |||
442 | { | 442 | { |
443 | } | 443 | } |
444 | 444 | ||
445 | # if THREAD_SIZE >= PAGE_SIZE | ||
445 | void __init __weak thread_info_cache_init(void) | 446 | void __init __weak thread_info_cache_init(void) |
446 | { | 447 | { |
447 | } | 448 | } |
449 | #endif | ||
448 | 450 | ||
449 | /* | 451 | /* |
450 | * Set up kernel memory allocators | 452 | * Set up kernel memory allocators |