From: James Morris AFS has an unused strdup() implementation. --- fs/afs/super.c | 8 -------- 1 files changed, 8 deletions(-) diff -puN fs/afs/super.c~remove-afs-strdup fs/afs/super.c --- 25/fs/afs/super.c~remove-afs-strdup 2004-01-15 20:30:08.000000000 -0800 +++ 25-akpm/fs/afs/super.c 2004-01-15 20:30:08.000000000 -0800 @@ -35,14 +35,6 @@ struct afs_mount_params { struct afs_volume *volume; }; -static inline char *strdup(const char *s) -{ - char *ns = kmalloc(strlen(s) + 1, GFP_KERNEL); - if (ns) - strcpy(ns, s); - return ns; -} - static void afs_i_init_once(void *foo, kmem_cache_t *cachep, unsigned long flags); _