Skip to content

Commit eded09c

Browse files
committed
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>
1 parent 5f0231d commit eded09c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎init/main.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,11 @@ void __init __weak smp_setup_processor_id(void)
442442
{
443443
}
444444

445+
# if THREAD_SIZE >= PAGE_SIZE
445446
void __init __weak thread_info_cache_init(void)
446447
{
447448
}
449+
#endif
448450

449451
/*
450452
* Set up kernel memory allocators

0 commit comments

Comments
 (0)