From: dave.martin@linaro.org (Dave Martin)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 2/2] modpost: use config and ELF sections to build file2alias
Date: Wed, 23 Nov 2011 17:14:44 +0000 [thread overview]
Message-ID: <20111123171444.GB20345@localhost.localdomain> (raw)
In-Reply-To: <20111123165452.GA24139@mail.gnudd.com>
On Wed, Nov 23, 2011 at 05:54:52PM +0100, Alessandro Rubini wrote:
> > I'm not the expert here, but I have a few comments that might be
> > useful.
>
> Yes, thanks.
>
> > In files which define multiple bus types, there's no reason to put them
> > all in the same array, so we can avoid the explicit boilerplate.
>
> Nice catch, I'll do as you suggest.
>
> > For myself, I have some misgivings about using this kind of toolchain
> > trick where it is not needed -- though this is partly a matter of taste.
> >
> > (To clarify, I think this stuff is only needed where the resulting
> > [...]
>
> This is needed because the bus abstraction and module autoloading
> is so useful that we have a lot of uses, and they are ever increasing.
> As said, in my current workgroup we have two new buses in the works.
You may have misunderstood -- putting tables in special sections and
doing a link-time merge is the thing that we don't necessarily to do
here. We do need the final merged table for use by file2alias.c; we
just don't necessarily have to construct it in that way.
Orthogonalising the addition of new buses to the module framework is
clearly a good idea though -- I'm not disupting that.
> > The problem to be solved here is essentially a source transofmration
> > and should be possible to do straightforwardly with an autogenerated
> > include file, a couple of Makefile rules and some scripting or
> > preprocessor tricks to paste the relevant entries into a common
> > array.
>
> But the result is more hackish than this. ELF sections are well
I'm not entirely convinced that it _can't_ be done in a less hack-ish
way... but I confess that my own attempts did end up in a bit of a
mess. So I can't really argue my point there.
> understood and widely used in this environment, so the solution is
> proved working. Scripting otherwise is an unneeded complication, as
> every user will have to know a new technique, which may break in
> the future (e.g. gmake 3.82 broke some makefiles: each new trick is
> a new risk).
As I said, it's partly a matter of personal taste. I'm happy to go with
other people's judgement. Sticking with something people are used to
certainly has value.
Cheers
---Dave
prev parent reply other threads:[~2011-11-23 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5fc02021bb75a6d325b7ebcdd657ca81667fe8b2.1320408578.git.rubini@gnudd.com>
2011-11-23 16:28 ` [RFC PATCH 2/2] modpost: use config and ELF sections to build file2alias Dave Martin
2011-11-23 16:54 ` Alessandro Rubini
2011-11-23 17:14 ` Dave Martin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111123171444.GB20345@localhost.localdomain \
--to=dave.martin@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox