Re: [PATCH 2/2][RFC] Add dm-crypt target
From: Jeff Garzik
Date: Tue Dec 23 2003 - 10:33:45 EST
On Tue, Dec 23, 2003 at 03:15:45PM +0000, Joe Thornber wrote:
> On Tue, Dec 23, 2003 at 02:36:22PM +0100, Christophe Saout wrote:
> > Am Di, den 23.12.2003 schrieb Christoph Hellwig um 14:13:
> >
> > > Please include driver-private headers after kernel headers.
>
> I tend to do things this way round to ensure that the private headers
> have correctly included all that they need, rather than relying on the
> accidental inclusion of a standard header.
I agree w/ Christoph... overly defensive programming like this just
creates a new class of programmer errors, doesn't really solve anything.
It's standard Linux kernel style, and making code look like all other
code has benefits in review and debugging. Finally, the programmer
should be paying attention to what kernel APIs he/she uses, and add
headers accordingly.
> > > > +static struct dm_daemon _kcryptd;
> > >
> > > Again, rather strange naming..
> >
> > This was done to be consistent with the other device-mapper code. I can
> > change it though.
>
> Kernel CRYPT Daemon
>
> In the same way we have a kmirrord, kcopyd etc. I'm happy with the
> name.
Not sure, but I think he meant the unneeded "_" prefix.
Jeff
-
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/