]> git.proxmox.com Git - mirror_spl.git/commit
Add handling for kernel 4.7's CONFIG_TRIM_UNUSED_KSYMS
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Fri, 29 Jul 2016 15:48:33 +0000 (18:48 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 1 Aug 2016 19:43:01 +0000 (12:43 -0700)
commit4b9dddf43084306de34394d666b874b912ca42ca
treee3bd770b12a4d1fd955bc4c9b3770be038c05ceb
parentfb833883872ba17f1f04f99741b6f47cf404c340
Add handling for kernel 4.7's CONFIG_TRIM_UNUSED_KSYMS

Kernel 4.7 added the option to trim the unused exported symbols. In
my testing this showed to be problematic since the PDE_DATA function
was considered unused and as such was trimmed. This in turn caused the
respective test during spl's configure stage to falsely detect that
PDE_DATA is not defined, which in turn caused build failures later.

Handle this situation by adding detection whether CONFIG_TRIM_UNUSED_KSYMS
is enabled and refuse to build against a kernel which has it enabled

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #565
config/spl-build.m4