Skip to contentSkip to conversation

percpu: Add missing DECLARE_PER_CPU_DECRYPTED

PATCH New Namhyung Kim 1 participant 1 message Jul 17

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 percpu: Add missing DECLARE_PER_CPU_DECRYPTED

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.

---
 include/linux/percpu-defs.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/percpu-defs.h +2 -0
index 43c854a273c3aa4c..649f31e34e810eb9 100644
@@ -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
 
Signature · 1 line
2.55.0.229.g6434b31f56-goog