* [PATCH] percpu: Add missing DECLARE_PER_CPU_DECRYPTED
@ 2026-07-17 21:33 Namhyung Kim
0 siblings, 0 replies; only message in thread
From: Namhyung Kim @ 2026-07-17 21:33 UTC (permalink / raw)
To: Dennis Zhou, Tejun Heo, Christoph Lameter
Cc: linux-mm, kvm, linux-arch, linux-kernel, Brijesh Singh
The commit ac26963a1175 ("percpu: Introduce DEFINE_PER_CPU_DECRYPTED")
introduced the DECLARE_ macro as well but it's not defined when
CONFIG_AMD_MEM_ENCRYPT=n. Let's add it.
Cc: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
include/linux/percpu-defs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index 43c854a273c3aa4c..649f31e34e810eb9 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -184,6 +184,8 @@
#define DEFINE_PER_CPU_DECRYPTED(type, name) \
DEFINE_PER_CPU_SECTION(type, name, "..decrypted")
#else
+#define DECLARE_PER_CPU_DECRYPTED(type, name) DECLARE_PER_CPU(type, name)
+
#define DEFINE_PER_CPU_DECRYPTED(type, name) DEFINE_PER_CPU(type, name)
#endif
--
2.55.0.229.g6434b31f56-goog
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-17 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 21:33 [PATCH] percpu: Add missing DECLARE_PER_CPU_DECRYPTED Namhyung Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox