From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5494C1FBEB9 for ; Tue, 10 Jun 2025 15:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749569502; cv=none; b=s77Z+uBcmbk+btqFLsLEyV5GhQaI8+aa7Jdhxp5PoKWbV601w49vpAns9ZXrqncwWsgKQdlAbmFc8nWOYXihrXznTLDOe8IOu01tMF6FfSUhsQf8UbfhAp6p1iXel+myyG7RHwPJVCKkF99cgvfHdpIWca4ONOFNXm98VehicDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749569502; c=relaxed/simple; bh=Ox5GBTvCCW7kGknUT060ZPDyK8iefVA4qWfSBUeFf7w=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=k6Cfs2xE/h6ngVgduQtzF3z1ds00BjPTI6yxYiYnVa00GOcaBKGTOSsE3Xjrs4/+X1zcznc6w2HqbpVmTEQfQ006GTG2Uyg+3fFpK9yPxQBGjWoy3ESN8aNo73e3PKqHwcGQyNbffpKahGqo+p+4fA0FwH9ZPxkfovPKciXqcOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mu9R74qb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mu9R74qb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22F1BC4CEED; Tue, 10 Jun 2025 15:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749569502; bh=Ox5GBTvCCW7kGknUT060ZPDyK8iefVA4qWfSBUeFf7w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mu9R74qb8DcaGHOtFdEKLxv5NdEJa53jO9BrheSeEIeNVE8qY0NLlftp20sjRIZdK gm+IjavFBFZf39e5Xptim86ue7ROm6H6T6Y5VjD5ArVxS0C0RTdkw+YSRnsGqACt0q gtEOgtumMTBTx0Haf18bCZsg7It3CVzP/FbTue3+xEBxImSZVI+2AdegX/zvL7s4sL opiIWltnxj0T9ODvhqJfRCuT835vm48icGKMTUNy4UBYBdPj5l0DSQFT/s2bTqy4E8 XKKrtNgavby3C+VEeraUuDEJpDMCXHLo0ZJlqxcCsYxJh1KV4q22qCVJMdKWZC3Laj 4bHbnXqHHHdyw== Received: from 91-161-240-24.subs.proxad.net ([91.161.240.24] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uP0wt-005YWt-Ty; Tue, 10 Jun 2025 16:31:39 +0100 Date: Tue, 10 Jun 2025 16:31:39 +0100 Message-ID: <87jz5jfw9w.wl-maz@kernel.org> From: Marc Zyngier To: "Aneesh Kumar K.V (Arm)" Cc: kvmarm@lists.linux.dev, Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland Subject: Re: [PATCH] KVM: arm64: nvhe: Fix build failure with gcc In-Reply-To: <20250610151132.1758206-1-aneesh.kumar@kernel.org> References: <20250610151132.1758206-1-aneesh.kumar@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 91.161.240.24 X-SA-Exim-Rcpt-To: aneesh.kumar@kernel.org, kvmarm@lists.linux.dev, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Tue, 10 Jun 2025 16:11:32 +0100, "Aneesh Kumar K.V (Arm)" wrote: > > Address a build failure encountered with aarch64-linux-gnu-gcc version > 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04) > > /usr/bin/aarch64-linux-gnu-ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__clock_mult_uint128': > /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): undefined reference to `__kvm_nvhe___lshrti3' > /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kvm_nvhe___lshrti3' $ ls -l arch/arm64/kvm/hyp/nvhe/clock.c ls: cannot access 'arch/arm64/kvm/hyp/nvhe/clock.c': No such file or directory > > Similar to commit 9bfe7553fadb ("arm64: Implement __lshrti3 library function"), > this change use the added helper. > > Cc: Marc Zyngier > Cc: Oliver Upton > Cc: Joey Gouly > Cc: Suzuki K Poulose > Cc: Zenghui Yu > Cc: Catalin Marinas > Cc: Will Deacon > > Suggested-by: Mark Rutland > Signed-off-by: Aneesh Kumar K.V (Arm) What was recently introduced that triggers this? I'd like to understand what mandates it, and avoid it of at all possible. M. -- Jazz isn't dead. It just smells funny.