Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1176634pxb; Sun, 21 Feb 2021 14:59:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlxOCPDJ01RHhUKc5OoIbLo4ExLPpH5z69LXlrsvjQa5MH/+2OKWB0pakOvRG1WXZLTQzn X-Received: by 2002:a17:906:5d15:: with SMTP id g21mr18997883ejt.373.1613948377101; Sun, 21 Feb 2021 14:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613948377; cv=none; d=google.com; s=arc-20160816; b=uBo6bAIAL7iq4taueQqnMC5eI2AzFH0nQ0yVewTPwJZwDCr+dR3DhboNhc96nrHrvm m26E8Asg+PfdYKOL9AU+3x0Co+Oc/hxwadInNd2x+bA2rwxglLM3MKrXbAPpzwawVrvc KxLryhLMUZOYh4II2lRECFlsoYv6YUOCJJwWNobQFnAwvBblPMMl+FuE28cDPZZtou8Y r1l/jMNhiYmvgwNuW6GQ386E/nce6PWGcPy/z7/zHgxSQwWUZ72ZggtW2MUunbPwLKG9 9iUfkKaGNA3BhIWagQg+jrrnmqV6cHkR/hVvA1pdicBaC7SjR5UQgRhB5ZDtS5sEEaEW x5YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=BMlieb6U92lcNjW+CkztzeL1c/s8InuHgyvsXFn4OdU=; b=zWFg47vzM8S4cAgIK7X/38k57fL3XvzAAmMax8diZ1BkYFA2QlX4JyC7cdm5tBSmxr 79O/SQYV+dG/KIiJ6wZd0Fj+l01QFPXbb1is94aEq3SJaupGgAvpJqXcDW9YwXBQ01T1 vjRw8tJ2UFs+kBs47TBw4cIA/zOysuUwPzVAbXQhmq0M89bUFuNqDQ/tjw4hCTeyv5gs sBNq/PrEzKdpIwqA+e6cvI52VjfwoRZRbOz9KucRL/R09BjGkZ4p7Ut8PHupYFemWSZh ammMHZutHn3ddIBPvU9G+7cb9ks+A7GaBgqMmfDMdXsyjFXkrJbMYm40csA5xzp3Wa2c vnXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M6zz+wIG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si2602284eji.715.2021.02.21.14.59.14; Sun, 21 Feb 2021 14:59:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M6zz+wIG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbhBUW5u (ORCPT + 99 others); Sun, 21 Feb 2021 17:57:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbhBUW5f (ORCPT ); Sun, 21 Feb 2021 17:57:35 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B278DC061574; Sun, 21 Feb 2021 14:56:54 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id s107so10377449otb.8; Sun, 21 Feb 2021 14:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=BMlieb6U92lcNjW+CkztzeL1c/s8InuHgyvsXFn4OdU=; b=M6zz+wIGsyJlgsoKsvT4r/K3OJ8vIXbnyCFPE3jaoMGfzQkiqpBu1bVZnoalTdAG/O ZW9JYNkCTSzQ8MRd9Ue69ZgnMZGhWwkHtnvoIhSgW+OwZevtCcf3E5PUr66swHfZ3Tvy HBKuWY8SoMhrO1tymK3VQz3nJ9qjVrh6jNPs1rHsj/Orz+9UT1BLKaGROuJwsIcnGMm5 HcbVx3shiTUyPpx49XIK2s4QsJL0QndbK6/rCH9Ois1HPGU9M6gAU4BQ7xD8mLJmwf66 7rHjzT9md3venlK3wYG/9SIMx4OpL45Y82Nt4OET0rhhq4auABqr6ssnwxwP3J1Z/8IZ 8ZCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=BMlieb6U92lcNjW+CkztzeL1c/s8InuHgyvsXFn4OdU=; b=XFZ5jvTQx27l54rYEUUvOd7yw0KLfOERM+aFFG+d4pPHyRYzpte2SMbCgJvwn6fHZ9 oLDkLh8PJ2jnPppQ1cHRvxLu9AfethntYgfsJNpsZkl5oRRcuVrV9yyz0y+5OtzJKLxk TITxBawu15QhnHJlQw4ZjjDMPwTpsjKJ7MGAsiywf5IzG316GtA/Hl4rxAnWib6wAWbm WXCe6BbnOme/JPY53bM1M7Vy+yyrUk96VUXbENw1NPZ6qXTsLGhNva3IQJtPt7l60TS9 R12Dle5X/P0E1m0Wtgzq1RH8d5G6EnLFgkSBgLCUgL8SYTvAPbcXCVb3pUUMJUJUd4Xo bRnw== X-Gm-Message-State: AOAM531u1mru/0gqEoTbZnJ1UxzTDsTYZIobrV46F1VNnLnAboV138ej tgWxaLCTe1bZuy97pzys62O3CyS00mc= X-Received: by 2002:a05:6830:1ac2:: with SMTP id r2mr5915387otc.80.1613948214142; Sun, 21 Feb 2021 14:56:54 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id i23sm3383705oik.10.2021.02.21.14.56.52 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Feb 2021 14:56:53 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Kees Cook Cc: Heiko Carstens , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck , Arnd Bergmann Subject: [PATCH] gcc-plugins: Disable GCC_PLUGIN_CYC_COMPLEXITY for s390 Date: Sun, 21 Feb 2021 14:56:50 -0800 Message-Id: <20210221225650.33134-1-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Heiko Carstens Fixes: 334ef6ed06fa ("init/Kconfig: make COMPILE_TEST depend on !S390") Signed-off-by: Guenter Roeck --- 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