String literals in __init functions

Andrew Morton akpm at linux-foundation.org
Thu Mar 26 14:40:58 PDT 2015


On Thu, 26 Mar 2015 21:49:06 +0100 Mathias Krause <minipli at googlemail.com> wrote:

> Andrew, what's your opinion on such a patch set? Do you too think it's
> useful? Or do you share Ingo's fear about the additional maintenance
> burden?

I don't think the burden would be toooo high, although it will mess the
code up a bit.

The post-build checking for section reference mismatches will help,
although that seems to have got itself turned off (what happened
there?).

Did anyone look at writing a postprocessor for the .s files?  It
doesn't look like it will be too hard from an initial peek.

Did anyone ask the gcc developers?  I'd have thought that a function-wide

	__attribute__((__string_section__(foo))

wouldn't be a ton of work to implement.



More information about the linux-arm-kernel mailing list