public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] module loader should not complain about unknown symbol
@ 2007-11-12 14:18 Jan Glauber
  2007-11-12 16:59 ` Andi Kleen
  2007-11-12 22:23 ` Rusty Russell
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Glauber @ 2007-11-12 14:18 UTC (permalink / raw)
  To: LKML; +Cc: Rusty Russell, Pavel Emelyanov, Andi Kleen, Jon Masters

If module A depends on module B and module B has not yet finished its
init() the module loader may print a warning about an unknown symbol.

This happens if module B is still in state MODULE_STATE_COMING,
as module A runs into resolve_symbol() for a symbol from module B.
resolve_symbol() return 0 in that case and causes the warning.

---
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>

Index: linux-2.6/kernel/module.c
===================================================================
--- linux-2.6.orig/kernel/module.c	2007-11-12 13:53:44.000000000 +0000
+++ linux-2.6/kernel/module.c	2007-11-12 13:54:33.000000000 +0000
@@ -1411,8 +1411,8 @@
 			if (ELF_ST_BIND(sym[i].st_info) == STB_WEAK)
 				break;
 
-			printk(KERN_WARNING "%s: Unknown symbol %s\n",
-			       mod->name, strtab + sym[i].st_name);
+			DEBUGP("%s: Unknown symbol %s\n", mod->name,
+			       strtab + sym[i].st_name);
 			ret = -ENOENT;
 			break;


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

end of thread, other threads:[~2007-11-14 11:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 14:18 [PATCH] module loader should not complain about unknown symbol Jan Glauber
2007-11-12 16:59 ` Andi Kleen
2007-11-12 22:23 ` Rusty Russell
2007-11-13  2:52   ` Rusty Russell
2007-11-13  4:08     ` Peter Teoh
2007-11-13  4:40       ` Rusty Russell
2007-11-13  4:55         ` Jon Masters
2007-11-14 12:12     ` Jan Glauber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox