From patchwork Wed Sep 4 14:17:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13790966 Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEAF91DB92B for ; Wed, 4 Sep 2024 14:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725459435; cv=none; b=nAgfFxLwlAEQErLAT9Ef6EXupIOz2J7bW91meMV88tTXVKEUf88WMlkfmDkozAa5hP3n8ALPnScOAZFjO8FDoGqzUFutYkD52c9RiMxL6le0UV/uAQiK/tKhCjLQNCc533t7jO9bV6MJ/YMxHaKIKnrmkzTH+PZNYufn5uK2eCc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725459435; c=relaxed/simple; bh=dqzaETBGxdiHXzqB09JdVEn1V1p5auGjZ0UFeEQ/a5M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QQFnFrzFETO0aQcAwhOyZx2StnR8mO8UyHAHJ01pwzzBB/K3BEzkQ+xlQD5cWD+BBck++twsNXqdFHxrBFbpDfQSHn5+pWdlBlon/HJRMvJaiz2EddqOOk3Ckv6U2EFQk08lC3uIiJkL9rrEFt0vtLPdzeracqN2k06pmuiI28I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=DPxqxfCm; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Z/nyEPlP; arc=none smtp.client-ip=103.168.172.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="DPxqxfCm"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Z/nyEPlP" Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id EFBE11380152; Wed, 4 Sep 2024 10:17:12 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Wed, 04 Sep 2024 10:17:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1725459432; x=1725545832; bh=NQhaS+XdM/ vbXpQunNjkJZgeLFZHyJtFBNNSAXi4MTU=; b=DPxqxfCmREv94PTF4i8O4nN/ig vW5GZpoM+ga2y3YuaCstMjsdvP1ZOCdZ11Om3lcXtRDV/ZM1wJgTP3HB8f1/BVck NgcYHlKqXaMsg0rPy/VIpmJ0YCOopp0o/iIexzNIDjaNUratYW5Q8J7b8m6kvC5+ A6puey3igzIQduLGjKHNGPSK+TIuvBZwoIYKVqz874lX7vhUeqkQMGT6O58XuD35 WmuRujv6ilqmz8LwAycmWXRdRh262NQqEGyvYlqfnKhYaSEPWEhbZc6z3cVkM2im WHGnn2GQ/NmnvH4LezE1Wl2XoxgdVdoeqRx+UtJHx6knvmVww6G4YHx2aD3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1725459432; x=1725545832; bh=NQhaS+XdM/vbXpQunNjkJZgeLFZH yJtFBNNSAXi4MTU=; b=Z/nyEPlPz6hWEp4/t3TarXPx2MAAlRfQaOmqMqEPREFU wEOPQm78EZgnl7TVXM1gGAlSSuqpVsjvtDVZNMIRBAg08EUpvem5Qkgfsn+maire SfoBAub1U89yAIXGWkBZt7xUh1PHdkxgh0Lt7GNPwba0KFL7lcjkY8B5Fqw5/mUb Mr5xpEsxcqL0mGDXWe/LCeEb95fAP1QaoVPe04tBRaOjBeQoZ/0dJHhF6AKdZQgF JvEeJFgtTB1a6jxs128G8bMV2I5CIfqI/CJy+Spz4B0CpbS+af8f/f29QhegWobi ZLJxZp7I8ilKtux2x3UkEuD5fld+GEHYkMG6cY7sbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehjedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvden ucfhrhhomheprfgrthhrihgtkhcuufhtvghinhhhrghrughtuceophhssehpkhhsrdhimh eqnecuggftrfgrthhtvghrnhepveekkeffhfeitdeludeigfejtdetvdelvdduhefgueeg udfghfeukefhjedvkedtnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrg hilhhfrhhomhepphhssehpkhhsrdhimhdpnhgspghrtghpthhtohepledpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepphhhihhllhhiphdrfihoohguseguuhhnvghlmhdroh hrghdruhhkpdhrtghpthhtohepvghthhhomhhsohhnsegvugifrghrughthhhomhhsohhn rdgtohhmpdhrtghpthhtohepjhhohhgrnhhnvghsrdhstghhihhnuggvlhhinhesghhmgi druggvpdhrtghpthhtohepshhtvggrughmohhnsehgohhoghhlvgdrtghomhdprhgtphht thhopehgihhtsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepghhithhsth gvrhesphhosghogidrtghomhdprhgtphhtthhopehlrdhsrdhrseifvggsrdguvgdprhgt phhtthhopehrshgsvggtkhgvrhesnhgvgigsrhhiughgvgdrtghomhdprhgtphhtthhope hsphgvtghtrhgrlhesghhoohhglhgvrdgtohhm X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Sep 2024 10:17:11 -0400 (EDT) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 86b7b96e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 4 Sep 2024 14:17:01 +0000 (UTC) Date: Wed, 4 Sep 2024 16:17:09 +0200 From: Patrick Steinhardt To: git@vger.kernel.org Cc: =?utf-8?b?UmVuw6k=?= Scharfe , Junio C Hamano , Kyle Lippincott , Phillip Wood , Josh Steadmon , rsbecker@nexbridge.com, Edward Thomson , Johannes Schindelin Subject: [PATCH v8 09/14] Makefile: do not use sparse on third-party sources Message-ID: <7d0f494850a48e5285e8823ff9252fdcf531439e.1725459142.git.ps@pks.im> References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: We have several third-party sources in our codebase that we have imported from upstream projects. These sources are mostly excluded from our static analysis, for example when running Coccinelle. Do the same for our "sparse" target by filtering them out. Signed-off-by: Patrick Steinhardt --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8c4487dd0c6..81a47b61327 100644 --- a/Makefile +++ b/Makefile @@ -3252,7 +3252,8 @@ t/helper/test-%$X: t/helper/test-%.o GIT-LDFLAGS $(GITLIBS) $(REFTABLE_TEST_LIB) check-sha1:: t/helper/test-tool$X t/helper/test-sha1.sh -SP_OBJ = $(patsubst %.o,%.sp,$(OBJECTS)) +SP_SRC = $(filter-out $(THIRD_PARTY_SOURCES),$(patsubst %.o,%.c,$(OBJECTS))) +SP_OBJ = $(patsubst %.c,%.sp,$(SP_SRC)) $(SP_OBJ): %.sp: %.c %.o $(GENERATED_H) $(QUIET_SP)cgcc -no-compile $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) \