aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8f6bb9375193..3883c5e6a7da 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,
628 628
629{ 629{
630 struct gendisk *disk; 630 struct gendisk *disk;
631 char from[sizeof("ubd/nnnnn\0")], to[sizeof("discnnnnn/disc\0")];
632 int err; 631 int err;
633 632
634 disk = alloc_disk(1 << UBD_SHIFT); 633 disk = alloc_disk(1 << UBD_SHIFT);
@@ -642,12 +641,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
642 if(major == MAJOR_NR){ 641 if(major == MAJOR_NR){
643 sprintf(disk->disk_name, "ubd%c", 'a' + unit); 642 sprintf(disk->disk_name, "ubd%c", 'a' + unit);
644 sprintf(disk->devfs_name, "ubd/disc%d", unit); 643 sprintf(disk->devfs_name, "ubd/disc%d", unit);
645 sprintf(from, "ubd/%d", unit);
646 sprintf(to, "disc%d/disc", unit);
647 err = devfs_mk_symlink(from, to);
648 if(err)
649 printk("ubd_new_disk failed to make link from %s to "
650 "%s, error = %d\n", from, to, err);
651 } 644 }
652 else { 645 else {
653 sprintf(disk->disk_name, "ubd_fake%d", unit); 646 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 ef8766e172ef..da336a3c6c7b 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, ...)
14{ 14{
15 return 0; 15 return 0;
16} 16}
17static inline int devfs_mk_symlink(const char *name, const char *link)
18{
19 return 0;
20}
21static inline void devfs_remove(const char *fmt, ...) 17static inline void devfs_remove(const char *fmt, ...)
22{ 18{
23} 19}