FILESYSTEMS: Replace deprecated kobject_set_name().
PATCH 1/1 FILESYSTEMS: Replace deprecated kobject_set_name().
---
fs/char_dev.c +1 -1
@@ -281,7 +281,7 @@ int register_chrdev(unsigned int major, const char *name, cdev->owner = fops->owner; cdev->ops = fops; -kobject_set_name (&cdev->kobj,"%s" , name); +kobject_rename (&cdev->kobj, name);for (s =strchr (kobject_name (&cdev->kobj),'/' ); s; s =strchr (s,'/' )) *s ='!' ;
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Quoted 10 lines · Robert P. J. Day
Signed-off-by Robert P. J. Day <[email protected]>---
fs/char_dev.c +0
-0
fs/char_dev.c int register_chrdev(unsigned int major, const char *name, · line 287
Quoted 8 lines
fs/char_dev.c +1
-1@@ -281,7 +281,7 @@ int register_chrdev(unsigned int major, const char *name, cdev->owner = fops->owner; cdev->ops = fops; -kobject_set_name (&cdev->kobj,"%s" , name); +kobject_rename (&cdev->kobj, name);for (s =strchr (kobject_name (&cdev->kobj),'/' ); s; s =strchr (s,'/' )) *s ='!' ;
whoops, that patch might not be correct. best to play it safe and toss it for now.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================