aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 21:15:16 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-26 12:25:06 -0700
commit79021a625c36162d24c852bbbdb04f0c1cb32db3 (patch)
treeca495cf7e6f9821a8cebdaaad81575015b8a8635
parent95dc112a5770dc670a1b45a3d9ee346fdd2b2697 (diff)
downloadkernel_samsung_crespo-79021a625c36162d24c852bbbdb04f0c1cb32db3.zip
kernel_samsung_crespo-79021a625c36162d24c852bbbdb04f0c1cb32db3.tar.gz
kernel_samsung_crespo-79021a625c36162d24c852bbbdb04f0c1cb32db3.tar.bz2
[PATCH] devfs: Remove devfs_mk_symlink() function from the kernel tree
Removes the devfs_mk_symlink() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--arch/um/drivers/ubd_kern.c7
-rw-r--r--include/linux/devfs_fs_kernel.h4
2 files changed, 0 insertions, 11 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 8f6bb93..3883c5e 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -628,7 +628,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
{
struct gendisk *disk;
- char from[sizeof("ubd/nnnnn\0")], to[sizeof("discnnnnn/disc\0")];
int err;
disk = alloc_disk(1 << UBD_SHIFT);
@@ -642,12 +641,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
if(major == MAJOR_NR){
sprintf(disk->disk_name, "ubd%c", 'a' + unit);
sprintf(disk->devfs_name, "ubd/disc%d", unit);
- sprintf(from, "ubd/%d", unit);
- sprintf(to, "disc%d/disc", unit);
- err = devfs_mk_symlink(from, to);
- if(err)
- printk("ubd_new_disk failed to make link from %s to "
- "%s, error = %d\n", from, to, err);
}
else {
sprintf(disk->disk_name, "ubd_fake%d", unit);
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index ef8766e..da336a3 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -14,10 +14,6 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
{
return 0;
}
-static inline int devfs_mk_symlink(const char *name, const char *link)
-{
- return 0;
-}
static inline void devfs_remove(const char *fmt, ...)
{
}