Skip to content

Commit

Permalink
FRV: gcc-4.1.2 also inlines weak functions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dhowells committed Nov 2, 2012
1 parent 5f0231d commit eded09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,11 @@ void __init __weak smp_setup_processor_id(void)
{
}

# if THREAD_SIZE >= PAGE_SIZE
void __init __weak thread_info_cache_init(void)
{
}
#endif

/*
* Set up kernel memory allocators
Expand Down

0 comments on commit eded09c

Please sign in to comment.