Re: [PATCH] char: Add Dell Systems Management Base driver

From: Greg KH
Date: Wed Jul 06 2005 - 22:20:21 EST


On Wed, Jul 06, 2005 at 10:57:35AM -0500, Doug Warzecha wrote:
> On Tue, Jul 05, 2005 at 11:17:03PM -0500, Greg KH wrote:
> > > +static void dcdbas_device_release(struct device *dev)
> > > +{
> > > + /* nothing to release */
> > > +}
> >
> > This is a symptom of a broken driver.
> >
> > Hm, I wonder if there's some way for the compiler to check the fact that
> > a function pointer passed to another function, is really a null
> > function. That would stop this kind of nonsense...
>
> There are other drivers in the kernel tree with null device release functions.

Where?

> >
> > I'm sure I commented on this driver already, yet, I never got a response
> > and the code is not changed. Is there some reason for this? That's a
> > sure way to prevent your patch from ever being applied...
>
> This is the first comment on the release function. The code has been
> changing in response to comments from you and others. We'll continue
> to make changes as needed.

You never responded to those questions though, so determining if the
code was changed is difficult. And I still see you using ioctls, which,
if I remember, was what I asked about.

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/