Re: [PATCH] create a kstrdup library function

From: Adrian Bunk
Date: Mon Apr 04 2005 - 16:38:48 EST


This patch contains a small bug:

<-- snip -->

...
WARNING: /lib/modules/2.6.12-rc1-mm4/kernel/net/sunrpc/sunrpc.ko needs
unknown symbol kstrdup
WARNING: /lib/modules/2.6.12-rc1-mm4/kernel/net/ipv6/ipv6.ko needs
unknown symbol kstrdup
WARNING: /lib/modules/2.6.12-rc1-mm4/kernel/drivers/parport/parport.ko
needs unknown symbol kstrdup
WARNING: /lib/modules/2.6.12-rc1-mm4/kernel/drivers/md/dm-mod.ko needs
unknown symbol kstrdup

<-- snip -->


Obvious fix:


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.12-rc1-mm4-modular/lib/string.c.old 2005-04-04 23:07:33.000000000 +0200
+++ linux-2.6.12-rc1-mm4-modular/lib/string.c 2005-04-04 23:09:50.000000000 +0200
@@ -619,3 +619,4 @@
memcpy(buf, s, len);
return buf;
}
+EXPORT_SYMBOL(kstrdup);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/