From nobody Thu Apr 9 09:03:32 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 03831411610; Mon, 9 Mar 2026 19:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773086059; cv=none; b=RGF7d6vdQcb7OaljFJ3mkqGA+7QV4qcTszOufyksVrho4Cclv4cx6lmGZqJj161j0w0qiUcayWlc3te6QzdYH1/yxcTsPaQpvV8uFMlOHKyDrFpU8a8z8U+V7sgpPFP9KW22gXq47iK4hxxvpl3e8Vd1u8SUDn95E6XCyYTD93w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773086059; c=relaxed/simple; bh=KeyeEez50MdQCKcN8Mkhypinc4mZZWRCU94NsP6SeEc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=qeUDCeQOjSIW8Wx4n+4Hw0sV1ni8HfYQO9GA4KL6U4syN+LNOSbAykdvTIjJo+BV4/LTymen+Rfk9ZnIdYz4AM6w+ttK+Cd67DwSx3aq9HzNsdt1nBWDaGzR+oBIK2zMGct5UnSMwy+LNSDN7PV5lutFBDQCbH65enqAxWD1LIw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wI5h6RsI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uPFbDfTs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wI5h6RsI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uPFbDfTs" Date: Mon, 09 Mar 2026 19:54:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773086056; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=53DH0jqkskUysWuU5og2Lik36jZYzjQ2+xZtXhgye2g=; b=wI5h6RsICqn+akh+ED1LVWQmvDmM0f0adQCw/W3VeFcekAItlO3fXpEmhlUWinItr6JnIJ cIxKpuLwDHnCi+sQoiGbVDJc30qBmmwft1Sjr9KUNguyhLQ0pqTILc2ygZ3xXek5Sqv6Mk IZfW4MffAW8TkR0Bz1otyJciryo3fVdxDKcq6rSWbx4xh4YHu2l6v1FV98P0JwJ+NBnb9v fFF3fMOW+kh75CoiKO3/dhM6eW9rgMUQUHapiSEyXwFlA1lrGfxVWp8XVefhkquXNPyheQ aI0Ge8Nt520dk+g6M33Rb6cg0vuQATnJQFMHVRIjsSErtiXZ5r0xN0PvYuamXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773086056; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=53DH0jqkskUysWuU5og2Lik36jZYzjQ2+xZtXhgye2g=; b=uPFbDfTsug7bBtf4V8a+QfvzMuvNVLuMzc/WAUfPJGaeS7yvQh4WRM9cNqQI4JNrcQVOaf jjSgo4nDeIlMZMDQ== From: "tip-bot2 for HONG Yifan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/urgent] objtool: Use HOSTCFLAGS for HAVE_XXHASH test Cc: HONG Yifan , Carlos Llamas , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260303010340.306164-1-elsk@google.com> References: <20260303010340.306164-1-elsk@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177308605560.1647592.16563099623328869266.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/urgent branch of tip: Commit-ID: 32234049107d012703d50547e815f198f147968b Gitweb: https://git.kernel.org/tip/32234049107d012703d50547e815f198f= 147968b Author: HONG Yifan AuthorDate: Tue, 03 Mar 2026 01:03:39=20 Committer: Josh Poimboeuf CommitterDate: Fri, 06 Mar 2026 07:48:41 -08:00 objtool: Use HOSTCFLAGS for HAVE_XXHASH test Previously, HAVE_XXHASH is tested by invoking HOSTCC without HOSTCFLAGS. Consider the following scenario: - The host machine has libxxhash installed - We build the kernel with HOSTCFLAGS containing a --sysroot that does not have xxhash.h (for hermetic builds) In this case, HAVE_XXHASH is set to y, but when it builds objtool with HOSTCFLAGS, because the --sysroot does not contain xxhash.h, the following error is raised: <...>/common/tools/objtool/include/objtool/checksum_types.h:12:10: fatal er= ror: 'xxhash.h' file not found 12 | #include | ^~~~~~~~~~ To resolve the error, we test HAVE_XXHASH by invoking HOSTCC with HOSTCFLAGS. Signed-off-by: HONG Yifan Reviewed-by: Carlos Llamas Link: https://patch.msgid.link/20260303010340.306164-1-elsk@google.com Signed-off-by: Josh Poimboeuf --- tools/objtool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 6964175..b8b8529 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -13,7 +13,7 @@ endif =20 ifeq ($(ARCH_HAS_KLP),y) HAVE_XXHASH =3D $(shell printf "$(pound)include \nXXH3_state_t = *state;int main() {}" | \ - $(HOSTCC) -xc - -o /dev/null -lxxhash 2> /dev/null && echo y || ec= ho n) + $(HOSTCC) $(HOSTCFLAGS) -xc - -o /dev/null -lxxhash 2> /dev/null &= & echo y || echo n) ifeq ($(HAVE_XXHASH),y) BUILD_KLP :=3D y LIBXXHASH_CFLAGS :=3D $(shell $(HOSTPKG_CONFIG) libxxhash --cflags 2>/de= v/null) \