projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0231d
)
FRV: gcc-4.1.2 also inlines weak functions
author
David Howells
<dhowells@redhat.com>
Fri, 2 Nov 2012 13:20:42 +0000
(13:20 +0000)
committer
David Howells
<dhowells@redhat.com>
Fri, 2 Nov 2012 13:20:42 +0000
(13:20 +0000)
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>
init/main.c
patch
|
blob
|
blame
|
history
diff --git
a/init/main.c
b/init/main.c
index 9cf77ab138a68738bb6926b8b31aaf6ba8cd4f6e..e33e09df3cbc61ad11736776ef4138010df1de8e 100644
(file)
--- a/
init/main.c
+++ b/
init/main.c
@@
-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