From: Steven Rostedt Date: Tue, 7 Jun 2011 02:35:13 +0000 (-0400) Subject: kprobes/trace: Fix kprobe selftest for gcc 4.6 X-Git-Tag: v3.0-rc3~4^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=265a5b7ee3eb21a4d0e53e17d59ba6eada91af39;p=pandora-kernel.git kprobes/trace: Fix kprobe selftest for gcc 4.6 With gcc 4.6, the self test kprobe function: kprobe_trace_selftest_target() is optimized such that kallsyms does not list it. The kprobes test uses this function to insert a probe and test it. But it will fail the test if the function is not listed in kallsyms. Adding a __used annotation keeps the symbol in the kallsyms table. Suggested-by: David Daney Cc: Masami Hiramatsu Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed