From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D0CAB40B6FA for ; Thu, 11 Jun 2026 13:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781184119; cv=none; b=Bjplnog2aYvpM+86zsL6SmSL5+MH6uC+GaYGQd9TX5Mjai33Xv0OtRUUxlLVWM1/ziBe2X7Kv2/84g30vjC+V+1kJCcC72cxSPEqFP7gj5kvdlzXuAj+/oK4sF4aA4QnMCh6Gcgjp07CoNSCQkj3OKWgvz6UIRuKSotSrrb4Uco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781184119; c=relaxed/simple; bh=wBmTF+KxMN5VWDZibuCAd0vzSyQGFj/DLZOSsscu1PE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=A9LQGURRxcBig0le2YyoR3j/vg8Q9G3R7Bz++ws/XWLvgrOHvmA7HnlvME7wdOpaeP80Ee9rhTjSnUGaVHhaR8/F8XiZUZF+3POiEzNr53g1JIYYuot+7eVw03+pA5e3Ikl+ZR2opctGeK3f0YjfbdYJ8Z8EEcr1MlGQS9gEPoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X0jF4Plg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X0jF4Plg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7574F1F00893; Thu, 11 Jun 2026 13:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781184115; bh=2DB9iKATiyvYk4hxQYhscWmchCYGPN8xroMo1JG8fAw=; h=From:To:Cc:Subject:Date; b=X0jF4PlgxCc+tMNzB12Xb63SkD5MVtyucDU2/m4jQfotlfaqtiQci1UfdDw8Ekwki cxHHFu16ELRYkHb/EbrzMLnklfUXdBmL1DoJgAqxRe5FtiA9qGW5VxPFe91QIDKbU6 1ICCC5HZu0cUWgnr5GI6BJVPs+PafdSdcoPiWSA8f/Vgz5kR9tW8NNCUjgHXppfW8u k/icw5dw289Q6p5UXmqlwYmi3ht2VhzLQJb+49aRjEJ7xxZWT8KZel49R+Djlsufwg qvLr1ngO4TKkpIRXRNlI2pqT0b1G4ANYntNPU3IFDsJX2Jng3pGV+VmnmaNJRqBuYo /cTwXhIr1X2Xw== From: Arnd Bergmann To: Peter Zijlstra , Josh Poimboeuf , Jason Baron , Alice Ryhl , Catalin Marinas , Will Deacon , Ard Biesheuvel Cc: Arnd Bergmann , Steven Rostedt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: static_call: include asm/insns.h Date: Thu, 11 Jun 2026 15:21:44 +0200 Message-Id: <20260611132149.40873-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann I came a cross a missing declaration in a randconfig build: arch/arm64/kernel/static_call.c:16:5: error: call to undeclared function 'aarch64_insn_adrp_get_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 16 | aarch64_insn_adrp_get_offset(le32_to_cpup(tramp + 4)) + | ^ Include the header that contains this definition explicitly, rather than relying on it to come indirectly through another header. Fixes: 54ac9ff8f119 ("arm64: Use static call trampolines when kCFI is enabled") Signed-off-by: Arnd Bergmann --- arch/arm64/kernel/static_call.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/static_call.c b/arch/arm64/kernel/static_call.c index 8b3a19e10871..c126edced022 100644 --- a/arch/arm64/kernel/static_call.c +++ b/arch/arm64/kernel/static_call.c @@ -2,6 +2,7 @@ #include #include #include +#include void arch_static_call_transform(void *site, void *tramp, void *func, bool tail) { -- 2.39.5