Re: [PATCH] FILESYSTEMS: Replace deprecated kobject_set_name().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Mar 2008, Robert P. J. Day wrote:

>
> Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>
>
> ---
>
> diff --git a/fs/char_dev.c b/fs/char_dev.c
> index 038674a..1527134 100644
> --- a/fs/char_dev.c
> +++ b/fs/char_dev.c
> @@ -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
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux