[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.55.0805092019100.10552@cliff.in.clinika.pl>
Date: Fri, 9 May 2008 20:36:00 +0100 (BST)
From: "Maciej W. Rozycki" <macro@...ux-mips.org>
To: Jean Delvare <khali@...ux-fr.org>
cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
Alessandro Zummo <a.zummo@...ertech.it>,
Ralf Baechle <ralf@...ux-mips.org>,
Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
rtc-linux@...glegroups.com, i2c@...sensors.org,
linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org,
David Brownell <david-b@...bell.net>
Subject: Re: [RFC][PATCH 2/4] RTC: SWARM I2C board initialization
Hi Jean,
> $ find linux-2.6.26-rc1 -name Kconfig | wc -l
> 455
> $ find linux-2.6.26-rc1 -name Makefile | wc -l
> 1030
> $
Well, these are not pieces of code and serve a different purpose, don't
they?
> Not to mention the 102 setup.c, 87 irq.c, 62 time.c... It is very
> common to have duplicated file names in the kernel tree because it
> supports so many architectures and platforms. In general, when you work
Well, that is not a technical argument. It is a fact of life, sure, but
it does not necessarily mean it is right, but perhaps that nobody has
really thought about it.
> on a given architecture or platform, names become unique again. Taking
> GDB as an example again, you definitely know what architecture you are
> debugging, so there should be relatively little ambiguity on what files
> are involved.
Hmm, why to have little ambiguity, when you can have none? We do not
rely on crippled filesystems, so we do not have to save characters in file
names -- we keep them reasonably short anyway. I say there is no
technical advantage in having duplicate file names throughout the tree
(please name one if I am wrong) and there are advantages -- however small,
but still -- in keeping file names unique. Therefore the gain from
converting the existing file names may not justify the effort required,
but it does not mean new additions may not take the gain into account?
> (On top of that, I'd argue that we _should_ be able to display relative
> paths to file names when debugging.)
Human's perception is limited -- GDB's `info frame' is probably already
overloaded with information, so adding the path to the source file in
question will not make it any better.
> Your point about the "single program namespace" is certainly valid for
> small to medium-size programs, but in the case of something as big as
> the kernel, it probably no longer holds.
I think it is actually the reverse -- the bigger a project is, the easier
to get lost within. ;-) With small programs it is easier to maintain,
while with bigger ones it is really where it pays off.
> I don't have a strong opinion on this either, it is very unlikely that
> I'll ever have to deal with this file personally. I'm only telling you
> what the common practice is in the kernel tree.
I don't think this practice has been architected and see above for
justification why it may not necessarily be the cleverest idea. :-)
Maciej
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists