Re: [PATCH] driver core: Suppress sysfs warnings fordevice_rename().

From: Stephen Hemminger
Date: Tue Jun 10 2008 - 11:30:31 EST


On Tue, 10 Jun 2008 11:09:08 +0200
Cornelia Huck <cornelia.huck@xxxxxxxxxx> wrote:

> On Wed, 21 May 2008 10:05:56 +0200,
> Cornelia Huck <cornelia.huck@xxxxxxxxxx> wrote:
>
> Just digging through my backlog: Is there any further interest in this
> patch?
>
> > On Tue, 20 May 2008 15:52:44 -0700,
> > Greg KH <greg@xxxxxxxxx> wrote:
> >
> > > On Tue, May 20, 2008 at 12:59:13PM +0200, Cornelia Huck wrote:
> > > > OK, here is an actually-compiled patch with proper description and
> > > > s-o-b. Comments?
> > >
> > > Looks good to me, feel free to add an:
> > > Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> > >
> > > to it.
> > >
> > > David, are you going to take this through your tree?
> >
> > Here it is again, respun against today's git:
> >
> >
> > driver core: Suppress sysfs warnings for device_rename().
> >
> > Renaming network devices to an already existing name is not
> > something we want sysfs to print a scary warning for, since the
> > callers can deal with this correctly. So let's introduce
> > sysfs_create_link_nowarn() which gets rid of the common warning.
> >
> > Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> > Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>
> >

I you want to put the warnings back this is a reasonable way.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/