• Emese Revfy's avatar
    kbuild: no gcc-plugins during cc-option tests · d26e9414
    Emese Revfy authored
    The gcc-plugins arguments should not be included when performing
    cc-option tests.
    
    Steps to reproduce:
    1) make mrproper
    2) make defconfig
    3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY
    4) enable FUNCTION_TRACER (it will select other options as well)
    5) make && make modules
    
    Build errors:
    MODPOST 18 modules
    ERROR: "__fentry__" [net/netfilter/xt_nat.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/xt_mark.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/xt_addrtype.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/xt_LOG.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/nf_nat_sip.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/nf_nat_irc.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/nf_nat_ftp.ko] undefined!
    ERROR: "__fentry__" [net/netfilter/nf_nat.ko] undefined!
    Reported-by: default avatarLaura Abbott <labbott@redhat.com>
    Signed-off-by: default avatarEmese Revfy <re.emese@gmail.com>
    [kees: renamed variable, clarified commit message]
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    d26e9414
Kbuild.include 14.9 KB