[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140916085727.GA4907@gmail.com>
Date: Tue, 16 Sep 2014 10:57:27 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Mathias Krause <minipli@...glemail.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Joe Perches <joe@...ches.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCHv3 0/9] Mark literal strings in __init / __exit code
* Mathias Krause <minipli@...glemail.com> wrote:
> > Regardless of how it's implemented on the tooling side, my
> > point remains: this kind of optimization is done on the
> > tooling side in a natural fashion, while it's an ongoing
> > maintenance concern on the kernel side.
>
> The costs of making the required changes to the code, i.e.
> changing printk() / pr_*() to pi_*() / pe_*(), are a necessary
> pain but are a one-time cost, as Joe already said. [...]
That argument is bogus - the costs form increased complexity are
ongoing for all new code affected by such constructs, and they
are an ongoing cost for all changes to the code as well.
> > So it should be done on the tooling side, especially as the
> > benefits appear to be marginal.
>
> But still, they are measurable. [...]
So is the cost of complexity measurable: we already got rid of
__init annotation variants, and we want to keep it simple and
maintainable, not litter the code with new variants again, only
to be warned about in build time checks that few developers run.
And when it comes to weighing increased complexity against some
marginal benefit, usually the simpler approach is preferred,
especially since it could all be solved via tooling. Sure, you
have to implement the tooling support for that, and have to wait
for that to trickle through to actual build environments - but in
turn that would benefit a lot more projects than the kernel
alone. If you are impatient you could do tooling in the kernel as
well, in tools/ for example.
Thanks,
Ingo
--
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