Re: [BK PATCH] add SMBIOS tables to sysfs

From: Greg KH
Date: Wed Apr 28 2004 - 16:51:14 EST


On Tue, Apr 27, 2004 at 10:55:52PM -0500, Michael Brown wrote:
> On Tue, 2004-04-27 at 22:30, Greg KH wrote:
> > > + snprintf(sdev->kobj.name, 7, "smbios" );
> >
> > Try using kobject_set_name() instead, it will do the proper thing if the
> > string is bigger than the base kobj.name field.
>
> Looks like this API was added in Aug03. A quick grep through the tree
> shows only <10 users. Are there patches pending to convert others, or
> are you just having new stuff do this?

New stuff should use it, and if you want to convert any current code to
also use it, please feel free to, I'll gladly take those patches.

thanks,

greg k-h
-
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/