Skip to content

Commit

Permalink
[PATCH] devfs: Remove devfs_mk_symlink() function from the kernel tree
Browse files Browse the repository at this point in the history
Removes the devfs_mk_symlink() function and all callers of it.

Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jun 26, 2006
1 parent 95dc112 commit 79021a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions include/linux/devfs_fs_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)
{
}
Expand Down

0 comments on commit 79021a6

Please sign in to comment.