From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-27.mta0.migadu.com [91.218.175.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C2C9392C2E for ; Tue, 1 Sep 2026 14:04:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.27 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788271447; cv=none; b=bVxpZ+mKtE9YNDJ3ggsVEidcxyIom+jf6uLeu+JPdPF/K3CQVbH/Gg31KrA+cPHc8mxkGhZvmcv1326WPMbmftfeFURjvhiaBgQHVUSx5cO72SDq3HDzt5Tf1vJyHR+p/X8B6eL5wXN9vZ6MsqCzP0h8bnMMCuAxvadpl1RMDv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788271447; c=relaxed/simple; bh=nf9m83+hrKqgn8YWup9R6VRwseln6uhzrpOiLyHdB7Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=knSsCjw3xQSwC6qMFPFVXSxR7HTppLjAOfPzY6LAU2hwZlJiyxLlpddFst+XIYXlGL9HOMvXbBw2Dr3I7mKv6n1CrBd4FPss9X5VIJyh8spJt3P2n6F5yNhRlJIaxs20CzpOR7DbYP1O58PzwBsUYr3qqVUNOeYxTFL0VbNS8jk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Zncaz+Aq; arc=none smtp.client-ip=91.218.175.27 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Zncaz+Aq" X-Envelope-To: linux-trace-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=nf9m83+hrKqgn8YWup9R6VRwseln6uhzrpOiLyHdB7Q=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1788271443; v=1; x=1788876243; b=Zncaz+Aq55l6zKrKuKdZ9uKk58puDA7hTL/UKDk6P7pYoBnaEJ0YSWVtMA5fjysMXq4ZWmPq awgIUS0qeD5/xME7YU8zd4pjevZQ4nTHsk6FzMjjOkvH4tUFWaflpN16Ihl6Qk+Y2YdioeExYoI ofGonMD0is4hR1k2Id2rKmD4= X-Envelope-To: linux-trace-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 652305927580f4db; Tue, 01 Sep 2026 14:04:03 +0000 X-Mizu-Trace-ID: 652305927580f4db X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Marc Zyngier , Oliver Upton , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Cc: Catalin Marinas , Will Deacon , Steven Rostedt , Masami Hiramatsu , Alexandru Elisei , Vincent Donnefort , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Quentin Perret , Ard Biesheuvel , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Fuad Tabba , Fuad Tabba Subject: [PATCH v4 05/11] KVM: arm64: nVHE: Run the source checker under C=2 Date: Tue, 1 Sep 2026 15:03:20 +0100 Message-Id: <20260901140326.3812068-6-fuad.tabba@linux.dev> In-Reply-To: <20260901140326.3812068-1-fuad.tabba@linux.dev> References: <20260901140326.3812068-1-fuad.tabba@linux.dev> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The custom %.nvhe.o rule reuses rule_cc_o_c, which hooks the source checker only for C=1, and that only when the object is rebuilt. The C=2 hook, cmd_force_checksrc, hangs off the standard %.o rule that nVHE objects do not use, so "make C=2" silently skips every nVHE source file. Call cmd_force_checksrc after the compile rule, as the standard rule does. Fixes: 7621712918ad4 ("KVM: arm64: Add build rules for separate VHE/nVHE object files") Reviewed-by: Vincent Donnefort Tested-by: Vincent Donnefort Reviewed-by: Marc Zyngier Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/nvhe/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile index f57450ebcb498..ccc1fe8394094 100644 --- a/arch/arm64/kvm/hyp/nvhe/Makefile +++ b/arch/arm64/kvm/hyp/nvhe/Makefile @@ -49,6 +49,7 @@ targets += $(hyp-obj) kvm_nvhe.tmp.o kvm_nvhe.rel.o hyp.lds hyp-reloc.S hyp-relo # avoids file name clashes for files shared with VHE. $(obj)/%.nvhe.o: $(src)/%.c FORCE $(call if_changed_rule,cc_o_c) + $(call cmd,force_checksrc) $(obj)/%.nvhe.o: $(src)/%.S FORCE $(call if_changed_rule,as_o_S) -- 2.39.5