Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 4)

2007-07-31 Thread WANG Cong
On Tue, Jul 31, 2007 at 02:19:53PM +0200, Cornelia Huck wrote: >On Tue, 31 Jul 2007 19:50:16 +0800, >WANG Cong <[EMAIL PROTECTED]> wrote: > >> On Mon, Jul 30, 2007 at 07:38:47PM +0800, Eugene Teo wrote: >> >This patch fixes these warnings: >> > >> >fs/partitions/check.c: In function 'add_partition'

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 4)

2007-07-31 Thread Cornelia Huck
On Tue, 31 Jul 2007 19:50:16 +0800, WANG Cong <[EMAIL PROTECTED]> wrote: > On Mon, Jul 30, 2007 at 07:38:47PM +0800, Eugene Teo wrote: > >This patch fixes these warnings: > > > >fs/partitions/check.c: In function 'add_partition': > >fs/partitions/check.c:391: warning: ignoring return value of 'kob

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 4)

2007-07-31 Thread WANG Cong
On Mon, Jul 30, 2007 at 07:38:47PM +0800, Eugene Teo wrote: >This patch fixes these warnings: > >fs/partitions/check.c: In function 'add_partition': >fs/partitions/check.c:391: warning: ignoring return value of 'kobject_add', > declared with attribute warn_unused_result >fs/partitions/check.c

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 4)

2007-07-30 Thread Cornelia Huck
On Mon, 30 Jul 2007 19:38:47 +0800, Eugene Teo <[EMAIL PROTECTED]> wrote: > This patch fixes these warnings: > > fs/partitions/check.c: In function 'add_partition': > fs/partitions/check.c:391: warning: ignoring return value of 'kobject_add', > declared with attribute warn_unused_result > f

[PATCH] fs/partitions/check.c: add_partition() warning fixes (take 4)

2007-07-30 Thread Eugene Teo
This patch fixes these warnings: fs/partitions/check.c: In function 'add_partition': fs/partitions/check.c:391: warning: ignoring return value of 'kobject_add', declared with attribute warn_unused_result fs/partitions/check.c:394: warning: ignoring return value of 'sysfs_create_lin

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 3)

2007-07-30 Thread Cornelia Huck
On Mon, 30 Jul 2007 19:16:38 +0800, Eugene Teo <[EMAIL PROTECTED]> wrote: > +err_out_del_link: > + sysfs_remove_link(&p->kobj, "subsystem"); > +err_out_del_uevent: > + if (!disk->part_uevent_suppress) > + kobject_uevent(&p->kobj, KOBJ_REMOVE); You're missing kobject_del() her

[PATCH] fs/partitions/check.c: add_partition() warning fixes (take 3)

2007-07-30 Thread Eugene Teo
This patch fixes these warnings: fs/partitions/check.c: In function 'add_partition': fs/partitions/check.c:391: warning: ignoring return value of 'kobject_add', declared with attribute warn_unused_result fs/partitions/check.c:394: warning: ignoring return value of 'sysfs_create_lin

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 2)

2007-07-30 Thread Eugene Teo
Cornelia Huck wrote: > On Mon, 30 Jul 2007 17:47:55 +0800, > Eugene Teo <[EMAIL PROTECTED]> wrote: > >> +err_out_del_link: >> +sysfs_remove_link(&p->kobj, "subsystem"); >> +err_out_del_kobj: >> +if (!disk->part_uevent_suppress) >> +kobject_uevent(&p->kobj, KOBJ_REMOVE); >> +

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes (take 2)

2007-07-30 Thread Cornelia Huck
On Mon, 30 Jul 2007 17:47:55 +0800, Eugene Teo <[EMAIL PROTECTED]> wrote: > +err_out_del_link: > + sysfs_remove_link(&p->kobj, "subsystem"); > +err_out_del_kobj: > + if (!disk->part_uevent_suppress) > + kobject_uevent(&p->kobj, KOBJ_REMOVE); > + kobject_put(&p->kobj); > +er

[PATCH] fs/partitions/check.c: add_partition() warning fixes (take 2)

2007-07-30 Thread Eugene Teo
This patch fixes these warnings: fs/partitions/check.c: In function 'add_partition': fs/partitions/check.c:391: warning: ignoring return value of 'kobject_add', declared with attribute warn_unused_result fs/partitions/check.c:394: warning: ignoring return value of 'sysfs_create_lin

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes

2007-07-30 Thread Eugene Teo
Hi Cornelia, Cornelia Huck wrote: > On Sun, 29 Jul 2007 10:53:39 +0800, > Eugene Teo <[EMAIL PROTECTED]> wrote: [...] >> +return; >> + >> +err_out_del_link: >> +sysfs_remove_link(&p->kobj, "subsystem"); > > You need a remove uevent if you did an add uevent above. > >> +err_out_del_kobj:

Re: [PATCH] fs/partitions/check.c: add_partition() warning fixes

2007-07-30 Thread Cornelia Huck
On Sun, 29 Jul 2007 10:53:39 +0800, Eugene Teo <[EMAIL PROTECTED]> wrote: > @@ -388,20 +389,34 @@ void add_partition(struct gendisk *disk, int part, > sector_t start, sector_t len, > p->kobj.parent = &disk->kobj; > p->kobj.ktype = &ktype_part; > kobject_init(&p->kobj); > - k

[PATCH] fs/partitions/check.c: add_partition() warning fixes

2007-07-28 Thread Eugene Teo
This patch fixes these warnings: fs/partitions/check.c: In function ‘add_partition’: fs/partitions/check.c:391: warning: ignoring return value of ‘kobject_add’, declared with attribute warn_unused_result fs/partitions/check.c:394: warning: ignoring return value of ‘sysfs_create_lin