Re: [PATCH v3 2/3] mmc: Add per-card debugfs support

From: Haavard Skinnemoen
Date: Fri Jul 25 2008 - 05:05:56 EST


On Fri, 25 Jul 2008 09:24:24 +0100
Ben Dooks <ben-linux@xxxxxxxxx> wrote:

> out of interest, why not have an standard sysfs node for the
> current voltage setting?

Dunno. Because nobody has added it? ;-)

> > Changes since v2:
> > * Don't rely on the compiler to optimize out unused code
>
> which compiler? the gcc 4 series seem quite good at it, gcc 3.4
> and later tended to eliminate only the code and not the associated
> data created with it.

4.2.x. It got rid of the code, the data associated with the code, but
not the code associated with that data again (i.e. the file operations
hooks).

> > +#ifdef CONFIG_DEBUG_FS
> > + mmc_add_card_debugfs(card);
> > +#endif
> > +
>
> why not make mmc_add_card_debugfs() an empty function
> in the header if there is no debugfs support?

Because Pierre didn't like it.

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