Messages in this thread Patch in this message | | | Subject | [PATCH] Remove devfs_mk_symlink() function from the kernel tree | Date | Sat, 11 Jun 2005 00:48:31 -0700 | From | Greg KH <> |
| |
Removes the devfs_mk_symlink() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- arch/um/drivers/ubd_kern.c | 7 ------- include/linux/devfs_fs_kernel.h | 4 ---- 2 files changed, 11 deletions(-)
--- gregkh-2.6.orig/arch/um/drivers/ubd_kern.c 2005-06-10 23:37:16.000000000 -0700 +++ gregkh-2.6/arch/um/drivers/ubd_kern.c 2005-06-10 23:38:12.000000000 -0700 @@ -619,7 +619,6 @@ { struct gendisk *disk; - char from[sizeof("ubd/nnnnn\0")], to[sizeof("discnnnnn/disc\0")]; int err; disk = alloc_disk(1 << UBD_SHIFT); @@ -633,12 +632,6 @@ 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); --- gregkh-2.6.orig/include/linux/devfs_fs_kernel.h 2005-06-10 23:37:16.000000000 -0700 +++ gregkh-2.6/include/linux/devfs_fs_kernel.h 2005-06-10 23:38:20.000000000 -0700 @@ -15,10 +15,6 @@ { return 0; } -static inline int devfs_mk_symlink(const char *name, const char *link) -{ - return 0; -} static inline void devfs_remove(const char *fmt, ...) { } - 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/
| |