]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: be more careful about matching preprocessed asm ___EXPORT_SYMBOL
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 Nov 2016 04:34:05 +0000 (15:34 +1100)
committerMichal Marek <mmarek@suse.com>
Wed, 9 Nov 2016 21:29:53 +0000 (22:29 +0100)
commit26abcc9de378d68752e68452cccf13118e3a5759
treec4b7b075f890668a78c7a2bcea0016f10519c71d
parentadf3d853c93bf365151301b6c598d921741d1345
kbuild: be more careful about matching preprocessed asm ___EXPORT_SYMBOL

The CRC code for asm exports grabs the preprocessed asm, finds the
___EXPORT_SYMBOL and turns those into EXPORT_SYMBOL in a C program
that can be preprocessed and parsed to create the CRC signatures from
the type.

The existing regex matching and replacement is too strict, and doesn't
deal well with whitespace among other things. The line
" EXPORT_SYMBOL(sym)" in a .S file would not match due to initial
whitespace, for example, which resulted in x86's ___preempt_schedule
failing to get CRCs.

Reported-by: Philip Müller <philm@manjaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/Makefile.build