[PATCH] Remove devfs_mk_symlink() function from the kernel tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removes the devfs_mk_symlink() function and all callers of it.

Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux