LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Fix kprobes on ia64
@ 2008-01-14 2:24 Matthew Wilcox
2008-01-14 6:02 ` Sam Ravnborg
2008-01-14 7:41 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Matthew Wilcox @ 2008-01-14 2:24 UTC (permalink / raw)
To: linux-ia64; +Cc: linux-kernel, Linus Torvalds, Andrew Morton
If CONFIG_KPROBES is set, we get the error during build:
kernel/kprobes.c:1057: error: __ksymtab_jprobe_return causes a section
type conflict
This is because ia64 defines a static inline jprobe_return which kprobes
attempts to EXPORT_SYMBOL.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index e3a5d81..ecc25b3 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1053,11 +1053,11 @@ EXPORT_SYMBOL_GPL(register_kprobe);
EXPORT_SYMBOL_GPL(unregister_kprobe);
EXPORT_SYMBOL_GPL(register_jprobe);
EXPORT_SYMBOL_GPL(unregister_jprobe);
+
#ifdef CONFIG_KPROBES
+#ifndef __ia64__ /* It's static inline */
EXPORT_SYMBOL_GPL(jprobe_return);
#endif
-
-#ifdef CONFIG_KPROBES
EXPORT_SYMBOL_GPL(register_kretprobe);
EXPORT_SYMBOL_GPL(unregister_kretprobe);
#endif
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix kprobes on ia64
2008-01-14 2:24 [PATCH] Fix kprobes on ia64 Matthew Wilcox
@ 2008-01-14 6:02 ` Sam Ravnborg
2008-01-14 7:41 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2008-01-14 6:02 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-ia64, linux-kernel, Linus Torvalds, Andrew Morton
On Sun, Jan 13, 2008 at 07:24:24PM -0700, Matthew Wilcox wrote:
>
> If CONFIG_KPROBES is set, we get the error during build:
>
> kernel/kprobes.c:1057: error: __ksymtab_jprobe_return causes a section
> type conflict
>
> This is because ia64 defines a static inline jprobe_return which kprobes
> attempts to EXPORT_SYMBOL.
The better fix is to let jprobe_return be a normal function that can be exported.
Then we avoid this arch specific ifdef for the cost of nothing.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix kprobes on ia64
2008-01-14 2:24 [PATCH] Fix kprobes on ia64 Matthew Wilcox
2008-01-14 6:02 ` Sam Ravnborg
@ 2008-01-14 7:41 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2008-01-14 7:41 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-ia64, linux-kernel, Linus Torvalds, Andrew Morton
On Sun, Jan 13, 2008 at 07:24:24PM -0700, Matthew Wilcox wrote:
> If CONFIG_KPROBES is set, we get the error during build:
>
> kernel/kprobes.c:1057: error: __ksymtab_jprobe_return causes a section
> type conflict
>
> This is because ia64 defines a static inline jprobe_return which kprobes
> attempts to EXPORT_SYMBOL.
Given that jprobe_return is defined in the arch-specific kprobes.c file
it would be better to export it there instead of in kernel/kprobe.c, or
in case of ia64 not export it at all.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-14 7:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-14 2:24 [PATCH] Fix kprobes on ia64 Matthew Wilcox
2008-01-14 6:02 ` Sam Ravnborg
2008-01-14 7:41 ` Christoph Hellwig
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).