From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96357C44520 for ; Mon, 20 Jul 2026 16:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MYBvhRVLS4rmHY8yLwRGizM70Cgxz7F7JWhxEszoE3o=; b=4Fw91F4oLHGLI/owjnFkWhcn1e W31uw5PD21xYObPx9a2GzOMlDnguEuHxo/QRBmVd8CXJekZ0Gnb1pP9Ja4alWSWeGRb8xyWC1ZbYu HIBoSx4pubsk5CEGonPCVAGk1VudQ5qSmStp4k2hQBJPqAAPr3pBw2uFixmWD71oWqbgk/NImfb+Z VbWERavG5oGM6jSYS3SnWlAAdz7DShPiI1h7ErnDo/BpwpKOkSLJlPEX/GaBUAJm9xDlAQ1OVmLZF rJhTOgzPvwSXJV7H+3NjRHUR7RdqLqi+z3UDcA1ho9/Y48FT7wIa2D0bG9WLfVktQAFORXH3Z61S9 ebdMLnuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wlqdI-00000007KWs-1VF4; Mon, 20 Jul 2026 16:14:20 +0000 Received: from out-173.mta0.migadu.com ([91.218.175.173]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wlqd5-00000007KN5-2paP for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2026 16:14:10 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784564045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MYBvhRVLS4rmHY8yLwRGizM70Cgxz7F7JWhxEszoE3o=; b=WvkjUqa0KjM0Xn4GpET+nJmIjBxJu0jVRji+PsCHPOdAbv8SSmYRjmTPSLVUE17/l8O++d vxkruTYrOlXpjPcAJP4j+gjSfYwiHzFtT2JjAeUYEharXnuPXdA/JVR7UG6FnE1H9bFaSn OdzzGZn/L5E915/VMso73QaXw47lSGs= From: Fuad Tabba To: maz@kernel.org, oupton@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Cc: catalin.marinas@arm.com, will@kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, alexandru.elisei@arm.com, vdonnefort@google.com, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, qperret@google.com, ardb@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, tabba@google.com, fuad.tabba@linux.dev Subject: [PATCH v1 03/11] KVM: arm64: nVHE: Declare the hyp event IDs before defining them Date: Mon, 20 Jul 2026 17:13:35 +0100 Message-Id: <20260720161343.1367007-4-fuad.tabba@linux.dev> In-Reply-To: <20260720161343.1367007-1-fuad.tabba@linux.dev> References: <20260720161343.1367007-1-fuad.tabba@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260720_091407_885452_66734358 X-CRM114-Status: UNSURE ( 7.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The defining expansion of HYP_EVENT() in events.c is the first time its translation unit meets hyp_event_id_, so sparse suggests making the symbols static. Include kvm_hypevents.h ahead of define_events.h so the extern declarations come first, as with the tracepoint headers. No functional change intended. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/nvhe/events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kvm/hyp/nvhe/events.c b/arch/arm64/kvm/hyp/nvhe/events.c index add9383aadb5a..b845be0acd117 100644 --- a/arch/arm64/kvm/hyp/nvhe/events.c +++ b/arch/arm64/kvm/hyp/nvhe/events.c @@ -7,6 +7,8 @@ #include #include +#include + #include int __tracing_enable_event(unsigned short id, bool enable) -- 2.39.5