]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
gcc-plugins: Fix definition of DISABLE_LATENT_ENTROPY_PLUGIN
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Tue, 6 Dec 2016 06:27:58 +0000 (17:27 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 3 Feb 2017 10:59:27 +0000 (21:59 +1100)
The variable DISABLE_LATENT_ENTROPY_PLUGIN is defined when
CONFIG_PAX_LATENT_ENTROPY is set. This is leftover from the original PaX
version of the plugin code and doesn't actually exist. Change the condition
to depend on CONFIG_GCC_PLUGIN_LATENT_ENTROPY instead.

Fixes: 38addce8b600 ("gcc-plugins: Add latent_entropy plugin")
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
scripts/Makefile.gcc-plugins

index 060d2cb373dbe3fe788b7ad01b7868eca3b73166..26c67b735dc9af67a53e349898163b0c82e6e594 100644 (file)
@@ -8,7 +8,7 @@ ifdef CONFIG_GCC_PLUGINS
 
   gcc-plugin-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY)       += latent_entropy_plugin.so
   gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY)        += -DLATENT_ENTROPY_PLUGIN
-  ifdef CONFIG_PAX_LATENT_ENTROPY
+  ifdef CONFIG_GCC_PLUGIN_LATENT_ENTROPY
     DISABLE_LATENT_ENTROPY_PLUGIN                      += -fplugin-arg-latent_entropy_plugin-disable
   endif