]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kallsyms: de-ifdef kallmodsyms
authorNick Alcock <nick.alcock@oracle.com>
Sat, 15 Aug 2015 11:18:14 +0000 (12:18 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 4 Sep 2015 21:39:59 +0000 (22:39 +0100)
commiteef978d1b999894e00967de349100fc5e54ec671
treed38079680c07d7c8dcc102947b031f5153125377
parent5c5279ca26cd0733ddff0e5b2b91ec2704a9a103
kallsyms: de-ifdef kallmodsyms

CONFIG_KALLMODSYMS is a bit ugly because of the burden of ifdefs.  It's
hard to remove them from scripts/kallsyms.c, but kernel/kallsyms.c doesn't
need any, since even when CONFIG_KALLMODSYMS is on it does not pull in any
extra build dependencies in and of itself: it just needs to arrange to not
create the kallmodsyms /proc node when the config option is turned off.
This will have the effect of disabling /proc/kallmodsyms when
CONFIG_KALLMODSYMS=n, without cluttering up the code with so many
ifdefs. (We still need one to populate the node in the first place.)

We also reverse the code motion we did earlier to make the other ifdefs
easier to insert.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Orabug: 21539840
kernel/kallsyms.c