LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -mm] ftrace : Fix section mismatch warning.
@ 2008-10-13  5:50 Rakib Mullick
  2008-10-20 16:27 ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Rakib Mullick @ 2008-10-13  5:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: rostedt, Ingo Molnar, Andrew Morton

WARNING: arch/x86/kernel/built-in.o(.text+0x11b41): Section mismatch
in reference from the variable ftrace_test_p6nop to the function
.init.text:ftrace_dyn_arch_init()
The function ftrace_test_p6nop() references
the function __init ftrace_dyn_arch_init().
This is often because ftrace_test_p6nop lacks a __init
annotation or the annotation of ftrace_dyn_arch_init is wrong.

WARNING: arch/x86/kernel/built-in.o(.text+0x11b4b): Section mismatch
in reference from the variable ftrace_test_nop5 to the function
.init.text:ftrace_dyn_arch_init()
The function ftrace_test_nop5() references
the function __init ftrace_dyn_arch_init().
This is often because ftrace_test_nop5 lacks a __init
annotation or the annotation of ftrace_dyn_arch_init is wrong.

This patch fixes the above warnings. Introduced by
'linux-next.patch'(2.6.27-rc5-mm1-broken-out).
Thanks.

Signed-off-by: Md.Rakib H. Mullick(rakib.mullick@gmail.com)

--- linux-2.6-mm.orig/arch/x86/kernel/ftrace.c	2008-10-11
18:55:52.000000000 +0600
+++ linux-2.6-mm/arch/x86/kernel/ftrace.c	2008-10-12 18:59:38.000000000 +0600
@@ -105,7 +105,7 @@ notrace int ftrace_mcount_set(unsigned l
 	return 0;
 }

-int __init ftrace_dyn_arch_init(void *data)
+int ftrace_dyn_arch_init(void *data)
 {
 	extern const unsigned char ftrace_test_p6nop[];
 	extern const unsigned char ftrace_test_nop5[];

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-10-27 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13  5:50 [PATCH -mm] ftrace : Fix section mismatch warning Rakib Mullick
2008-10-20 16:27 ` Ingo Molnar
2008-10-22  7:03   ` Ingo Molnar
2008-10-24 11:09     ` Rakib Mullick
2008-10-24 11:50       ` Ingo Molnar
2008-10-24 12:19         ` Steven Rostedt
2008-10-24 12:22           ` Steven Rostedt
2008-10-24 13:12         ` [PATCH] ftrace: use a real variable for ftrace_nop in x86 Steven Rostedt
2008-10-24 13:17           ` Steven Rostedt
2008-10-27 15:52             ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).