Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1167846pxb; Fri, 21 Jan 2022 11:17:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsv5K0Vy5QKsr1tjJee1Q3mMihqNzbVYfEhu7M4QMF96BGaVj43qDSNRtDdq4ZM5NN5caz X-Received: by 2002:a17:902:7c10:b0:14a:3fd4:29fb with SMTP id x16-20020a1709027c1000b0014a3fd429fbmr5347077pll.69.1642792658885; Fri, 21 Jan 2022 11:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792658; cv=none; d=google.com; s=arc-20160816; b=EnIqD/W2WKSxUZYpp+h8Vgd1P8oxQMwDI75KohrE9C00bRFbzu47X315kp3AFZPY/G pMZ457IfNJhAsypVgV0OesQ+AwruzQ4kPoDVCNRYGRSspV4bqULCstRFqf2MvQLuC3VR byc6mt5nqMV+e7oEqDF97Q4/O5J1wBwkmZbBAUwJUgDNPZHuaW7v+iwT9N1o5j+7dXGR COzBT5FjkM44pz78cj1GdldMfg1Zpg3yn0OVYB1Ra2jvGY8KVWovTm0oj7qaOSoj1z91 +Tvns0d3iOWz6k9iMyroPMkh1KhtHecSh9BVWbbi9mVBbZxByZ4O/Hca034Pqw/hZT2B btkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aXHk7kgBKFHtkj3JoEZ9MDEiTwaWDRWLmqx+zgBNjBc=; b=cLxiExvfsWNEaXKAFEStd5J5NANGzyGX2flHPQMDTd/UOuXHKeTVDAiKml4lFghby2 dDpkFxMPEZuh65ryl9+u6qyYn39331c9fkX8Bxmx7GpPsMr7h1fXejJ24j+TppIW9Kpo IyBBLqMU6sJYA+sUGOkSiRNJKPP4ni8pV9j+/eZp1+tMZGjB0sxMZxMsufHyKnaNDEDF WxJS2cFJeVo802ZMF/OR3GHnjow8pNkwsbVy+3h6zdVlzFNjZ8yw+CNmmH2Py/s+Up/X vF9ugmRY1UdFiPx9qaT+RBJT1v/ru77yeEl7nRsMlmgkHN2N0oe9p0eTqreT5bmjZ182 vdgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qr82z7QN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be11si6876431plb.94.2022.01.21.11.17.26; Fri, 21 Jan 2022 11:17:38 -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=@intel.com header.s=Intel header.b=Qr82z7QN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350103AbiASNwL (ORCPT + 99 others); Wed, 19 Jan 2022 08:52:11 -0500 Received: from mga05.intel.com ([192.55.52.43]:59410 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235698AbiASNwK (ORCPT ); Wed, 19 Jan 2022 08:52:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642600330; x=1674136330; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=V6xj/70rR9995gOWyZ2fhDWt5YCJUunhJStJfwvw0ds=; b=Qr82z7QNjzR3qw3ritHdY4J04BfnBHWNhuIOzIdVxZmeonYFDNAj164X BQpfpTTgBFz0DxuUnHqYksUXP/NArafEcdN5Kk+6TUPPiwpYEY1pRHIVP gEoK7vvZ5LpGbOy+murd+TwbXOBVUNIdvw94w6Br7pbBxMDMd32WFwWAP fJKSfN1PPQJYTcI3Eohip+vXKeN+voOaqLzTfel2PEnfVax70Cf+l018K /++acZg5REwaEXC8VA6Xi1GcScDf9UWa/jLhgQZ9tModuCxQxK0eiY6RD tpfXH1BWDwjYhG328HwlUnbThszOHYy582jt1bXzw3QWU5UPf2CudRSct w==; X-IronPort-AV: E=McAfee;i="6200,9189,10231"; a="331419653" X-IronPort-AV: E=Sophos;i="5.88,299,1635231600"; d="scan'208";a="331419653" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 05:52:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,299,1635231600"; d="scan'208";a="477379673" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orsmga006.jf.intel.com with ESMTP; 19 Jan 2022 05:52:07 -0800 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: linux-kbuild@vger.kernel.org, Masahiro Yamada , Michal Marek , Nick Desaulniers , Nathan Chancellor Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, "Rafael J . Wysocki" , Andy Shevchenko , Cezary Rojewski , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Subject: [PATCH] Makefile: Fix build with scan-build Date: Wed, 19 Jan 2022 14:51:47 +0100 Message-Id: <20220119135147.1859982-1-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building kernel with scan-build for analysis: $ scan-build make defconfig $ scan-build make menuconfig # disable RETPOLINE $ scan-build make -j16 bindeb-pkg since commit 7d73c3e9c514 ("Makefile: remove stale cc-option checks") it fails with: CC scripts/mod/empty.o could not find clang line make[4]: *** [scripts/Makefile.build:287: scripts/mod/empty.o] Error 1 Seems like changes to how -fconserve-stack support was detected broke build with scan-build. Revert part of mentioned commit which changed that. Fixes: 7d73c3e9c514 ("Makefile: remove stale cc-option checks") CC: Nick Desaulniers Signed-off-by: Amadeusz Sławiński Reviewed-by: Cezary Rojewski --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 765115c99655..1174ccd182f5 100644 --- a/Makefile +++ b/Makefile @@ -991,9 +991,7 @@ KBUILD_CFLAGS += -fno-strict-overflow KBUILD_CFLAGS += -fno-stack-check # conserve stack if available -ifdef CONFIG_CC_IS_GCC -KBUILD_CFLAGS += -fconserve-stack -endif +KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) # Prohibit date/time macros, which would make the build non-deterministic KBUILD_CFLAGS += -Werror=date-time -- 2.25.1