提交 79021a62 编写于 作者: G Greg Kroah-Hartman

[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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 95dc112a
...@@ -628,7 +628,6 @@ static int ubd_new_disk(int major, u64 size, int unit, ...@@ -628,7 +628,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
{ {
struct gendisk *disk; struct gendisk *disk;
char from[sizeof("ubd/nnnnn\0")], to[sizeof("discnnnnn/disc\0")];
int err; int err;
disk = alloc_disk(1 << UBD_SHIFT); disk = alloc_disk(1 << UBD_SHIFT);
...@@ -642,12 +641,6 @@ static int ubd_new_disk(int major, u64 size, int unit, ...@@ -642,12 +641,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
if(major == MAJOR_NR){ if(major == MAJOR_NR){
sprintf(disk->disk_name, "ubd%c", 'a' + unit); sprintf(disk->disk_name, "ubd%c", 'a' + unit);
sprintf(disk->devfs_name, "ubd/disc%d", 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 { else {
sprintf(disk->disk_name, "ubd_fake%d", unit); sprintf(disk->disk_name, "ubd_fake%d", unit);
......
...@@ -14,10 +14,6 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...) ...@@ -14,10 +14,6 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
{ {
return 0; return 0;
} }
static inline int devfs_mk_symlink(const char *name, const char *link)
{
return 0;
}
static inline void devfs_remove(const char *fmt, ...) static inline void devfs_remove(const char *fmt, ...)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册