All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc-plugins: Disable GCC_PLUGIN_CYC_COMPLEXITY for s390
@ 2021-02-21 22:56 Guenter Roeck
  2021-02-22 12:05 ` Heiko Carstens
  0 siblings, 1 reply; 11+ messages in thread
From: Guenter Roeck @ 2021-02-21 22:56 UTC (permalink / raw)
  To: Kees Cook
  Cc: Heiko Carstens, linux-hardening, linux-kernel, Guenter Roeck,
	Arnd Bergmann

Commit 334ef6ed06fa ("init/Kconfig: make COMPILE_TEST depend on !S390") disabled
COMPILE_TEST for s390. At the same time, "make allmodconfig/allyesconfig" for
s390 is still supported. However, it generates thousands of compiler
messages such as the following, making it highly impractical to run.

Cyclomatic Complexity 1 scripts/mod/devicetable-offsets.c:main
Cyclomatic Complexity 1 scripts/mod/devicetable-offsets.c:_GLOBAL__sub_I_00100_0_main

Since GCC_PLUGIN_CYC_COMPLEXITY is primarily used for testing, disable it
when building s390 images.

Cc: Arnd Bergmann <arnd@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Fixes: 334ef6ed06fa ("init/Kconfig: make COMPILE_TEST depend on !S390")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 scripts/gcc-plugins/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig
index ab9eb4cbe33a..5e9bb500f443 100644
--- a/scripts/gcc-plugins/Kconfig
+++ b/scripts/gcc-plugins/Kconfig
@@ -21,7 +21,7 @@ if GCC_PLUGINS
 
 config GCC_PLUGIN_CYC_COMPLEXITY
 	bool "Compute the cyclomatic complexity of a function" if EXPERT
-	depends on !COMPILE_TEST	# too noisy
+	depends on !COMPILE_TEST && !S390	# too noisy
 	help
 	  The complexity M of a function's control flow graph is defined as:
 	   M = E - N + 2P
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-02-24 15:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21 22:56 [PATCH] gcc-plugins: Disable GCC_PLUGIN_CYC_COMPLEXITY for s390 Guenter Roeck
2021-02-22 12:05 ` Heiko Carstens
2021-02-22 15:18   ` Guenter Roeck
2021-02-22 15:45     ` Masahiro Yamada
2021-02-22 16:03       ` Guenter Roeck
2021-02-23 11:54         ` Heiko Carstens
2021-02-23 17:41           ` Guenter Roeck
2021-02-23 18:03             ` Heiko Carstens
2021-02-23 18:17               ` Kees Cook
2021-02-24  1:46               ` Guenter Roeck
2021-02-24 14:19                 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.