lkml.org 
[lkml]   [2005]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH 2.6] 0/7 make kstrdup a library function

This series of patches create a "char *kstrdup(const char *s, int gfp)" library
function, and remove all the "private" strdup implementations in the kernel
tree.

1 - create a kstrdup library function
2 - remove private strdup from drivers/md/dm-ioctl.c
3 - remove private strdup from drivers/parport/probe.c
4 - remove uml_strdup (UML architecture)
5 - remove private strdup from net/sunrpc/svcauth_unix.c
6 - remove net_sysctl_strdup (networking)
7 - remove snd_kmalloc_strdup (sound)

This is just a cleanup to allow reusing the strdup code, and to prevent bugs in
future duplications of strdup.

These patches were built against 2.6.11-rc2-bk9. Patch 1/7 is similar to a patch
sent by Rusty Russell (although not quite the same), and 2/7 is also similar to
another patch sent today by Matt Domsch. So these should go over a vanilla
kernel without any of those patches.

All the patches depend on the first patch, but are otherwise independent.

Signed-off-by: Paulo Marques <pmarques@grupopie.com>

--
Paulo Marques - www.grupopie.com

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke (1729 - 1797)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.033 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site