From: Greg KH <gregkh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: gregkh@suse.de
Subject: [PATCH] devfs: Remove devfs_mk_symlink() function from the kernel tree
Date: Mon, 20 Jun 2005 23:30:43 -0700 [thread overview]
Message-ID: <11193354432926@kroah.com> (raw)
In-Reply-To: <111933544291@kroah.com>
[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: Greg Kroah-Hartman <gregkh@suse.de>
---
commit 00c3ef98b7c620441fbcb03b4426d33430d90e38
tree cbd742f0cd08aeefdb3ca66dfb9633c7256664ee
parent 59fc8ea23cb33097e8ca69729cf136174faabced
author Greg Kroah-Hartman <gregkh@suse.de> Mon, 20 Jun 2005 21:15:16 -0700
committer Greg Kroah-Hartman <gregkh@suse.de> Mon, 20 Jun 2005 23:13:32 -0700
arch/um/drivers/ubd_kern.c | 7 -------
include/linux/devfs_fs_kernel.h | 4 ----
2 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -619,7 +619,6 @@ static int ubd_new_disk(int major, u64 s
{
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 @@ static int ubd_new_disk(int major, u64 s
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);
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -15,10 +15,6 @@ static inline int devfs_mk_cdev(dev_t de
{
return 0;
}
-static inline int devfs_mk_symlink(const char *name, const char *link)
-{
- return 0;
-}
static inline void devfs_remove(const char *fmt, ...)
{
}
next prev parent reply other threads:[~2005-06-21 7:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <11193354424077@kroah.com>
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs from the init code Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs_*_tape() functions from the kernel tree Greg KH
2005-06-21 6:30 ` Greg KH [this message]
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs_mk_dir() function " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs_mk_bdev() " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs_mk_cdev() " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove devfs_remove() " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the miscdevice devfs_name field as it's no longer needed Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the uart_driver devfs_name field as it's no longer needed Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the gendisk " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the videodevice " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the line_driver " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the ide drive " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the scsi_disk " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the tty_driver " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Remove the mode field from usb_class_driver " Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Rename TTY_DRIVER_NO_DEVFS to TTY_DRIVER_DYNAMIC_DEV Greg KH
2005-06-21 6:30 ` [PATCH] devfs: Last little devfs cleanups throughout the kernel tree Greg KH
2005-06-21 8:12 ` Thomas Schneller
2005-06-21 7:09 ` [PATCH] devfs: Remove the tty_driver devfs_name field as it's no longer needed Russell King
2005-06-21 7:18 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11193354432926@kroah.com \
--to=gregkh@suse.de \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.