Re: drivers/w1/: why is dscore.c not ds9490r.c ?

From: Adrian Bunk
Date: Fri Nov 26 2004 - 15:49:10 EST


On Tue, Nov 23, 2004 at 01:34:12PM +0300, Evgeniy Polyakov wrote:
> On Tue, 2004-11-23 at 01:20 +0100, Adrian Bunk wrote:
> > On Mon, Nov 22, 2004 at 08:37:00PM +0300, Evgeniy Polyakov wrote:
> > >
> > > that should be follwing:
> > >
> > > Kconfig:
> > > foo depends on ds9490r
> > >
> > > obj-$() += foo.o
> > > foo-objs := foo_1.o foo_2.o
> > >
> > > It just happened that ds9490r does not need any other parts but
> > > dscore.o.
> > > That is why ds9490r.o have only dscore.o in it's dependency.
> >
> > If foo_1 or foo_2 is dscore, you get exactly the compile breakage I
> > described.
>
> foo_1 and foo_2 will not be dscore, since foo depends on ds9490 and thus
> dscore must be already built.
> It looks like you were confused by dscore vs. ds9490 names. Probably it
> was not a good idea to
> call it in a such way, but it was done and it works.

Is there a reason against simply renaming dscore.c to ds9490r.c ?

> > > > That drivers/w1/ contains many EXPORT_SYMBOL's with no in-kernel users
> > > > is a different issue I might send a separate patch for (that besides
> > > > proprietary modules there might come some day open source drivers using
> > > > them is not a reason).
> > >
> > > Why remove existing non disturbing set of exported functions?
> > > Are they violate some unknown issues?
> >
> > If an export is currently unused, there's no need to export it.
> >
> > If an export is only used for proprietary modules, that's a reason for
> > an immediate removal of this export.
>
> Sigh. It can be used by anyone who want to use it.

That's not the way it's handled in the Linux kernel.

Proprietary modules are allowed, but support code only required by them
but not used by free software has to be removed.

> I will take more carefull look at it later, thank you.

Thanks.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

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