mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00:00
fs/char_dev.c: remove unused cdev_index()
Commit 66fa12c571
("ieee1394: remove the old IEEE 1394 driver stack")
eliminated the only user of cdev_index(). So it can be removed too.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ceff1a7709
commit
e6d7202b66
@ -417,18 +417,6 @@ static int chrdev_open(struct inode *inode, struct file *filp)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cdev_index(struct inode *inode)
|
|
||||||
{
|
|
||||||
int idx;
|
|
||||||
struct kobject *kobj;
|
|
||||||
|
|
||||||
kobj = kobj_lookup(cdev_map, inode->i_rdev, &idx);
|
|
||||||
if (!kobj)
|
|
||||||
return -1;
|
|
||||||
kobject_put(kobj);
|
|
||||||
return idx;
|
|
||||||
}
|
|
||||||
|
|
||||||
void cd_forget(struct inode *inode)
|
void cd_forget(struct inode *inode)
|
||||||
{
|
{
|
||||||
spin_lock(&cdev_lock);
|
spin_lock(&cdev_lock);
|
||||||
@ -582,7 +570,6 @@ EXPORT_SYMBOL(cdev_init);
|
|||||||
EXPORT_SYMBOL(cdev_alloc);
|
EXPORT_SYMBOL(cdev_alloc);
|
||||||
EXPORT_SYMBOL(cdev_del);
|
EXPORT_SYMBOL(cdev_del);
|
||||||
EXPORT_SYMBOL(cdev_add);
|
EXPORT_SYMBOL(cdev_add);
|
||||||
EXPORT_SYMBOL(cdev_index);
|
|
||||||
EXPORT_SYMBOL(__register_chrdev);
|
EXPORT_SYMBOL(__register_chrdev);
|
||||||
EXPORT_SYMBOL(__unregister_chrdev);
|
EXPORT_SYMBOL(__unregister_chrdev);
|
||||||
EXPORT_SYMBOL(directly_mappable_cdev_bdi);
|
EXPORT_SYMBOL(directly_mappable_cdev_bdi);
|
||||||
|
@ -28,8 +28,6 @@ int cdev_add(struct cdev *, dev_t, unsigned);
|
|||||||
|
|
||||||
void cdev_del(struct cdev *);
|
void cdev_del(struct cdev *);
|
||||||
|
|
||||||
int cdev_index(struct inode *inode);
|
|
||||||
|
|
||||||
void cd_forget(struct inode *);
|
void cd_forget(struct inode *);
|
||||||
|
|
||||||
extern struct backing_dev_info directly_mappable_cdev_bdi;
|
extern struct backing_dev_info directly_mappable_cdev_bdi;
|
||||||
|
Loading…
Reference in New Issue
Block a user