Re: [RFC][PATCH] warn when statically-allocated kobjects are used

From: Dmitry Torokhov
Date: Wed Mar 22 2006 - 22:46:41 EST


On Friday 17 March 2006 12:43, Greg KH wrote:
> On Fri, Mar 17, 2006 at 05:04:03PM +0100, Arjan van de Ven wrote:
> >
> > > +warn:
> > > + printk("---- begin silly warning ----\n");
> > > + printk("This is a janitorial warning, not a kernel bug.\n");
> >
> > technically it IS a kernel bug ;)
>
> Until we fix up all of the struct bus and decl_subsys() usages in the
> kernel, this should show a lot of false positives...
>

Plus IIRC ARM creates bunch of platform devices which are statically
allocated. But because they never get unregistered everything works
just fine.

--
Dmitry
-
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/