[PATCH 1/4] static_call: Add stub for ARCH_ADD_TRAMP_KEY if not provided by arch

From: Sean Christopherson

Date: Thu May 28 2026 - 11:09:56 EST


Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
include/linux/static_call.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/linux/static_call.h b/include/linux/static_call.h
index 78a77a4ae0ea..7539c82dd35f 100644
--- a/include/linux/static_call.h
+++ b/include/linux/static_call.h
@@ -210,6 +210,10 @@ extern long __static_call_return0(void);

#define static_call_cond(name) (void)__static_call(name)

+#ifndef ARCH_ADD_TRAMP_KEY
+#define ARCH_ADD_TRAMP_KEY(name)
+#endif
+
#define EXPORT_STATIC_CALL(name) \
EXPORT_SYMBOL(STATIC_CALL_KEY(name)); \
EXPORT_SYMBOL(STATIC_CALL_TRAMP(name))

base-commit: d1568b1332b6b3b36b222c2868fc102727c12a34
--
2.54.0.794.g4f17f83d09-goog


--ib8lfqx9reG8y5p3
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0002-KVM-x86-Don-t-export-static-call-keys-to-vendor-modu.patch"