From: Namhyung Kim <namhyung@kernel.org>
To: Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>,
Christoph Lameter <cl@gentwo.org>
Cc: linux-mm@kvack.org, kvm@vger.kernel.org,
linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
Brijesh Singh <brijesh.singh@amd.com>
Subject: [PATCH] percpu: Add missing DECLARE_PER_CPU_DECRYPTED
Date: Fri, 17 Jul 2026 14:33:43 -0700 [thread overview]
Message-ID: <20260717213343.200497-1-namhyung@kernel.org> (raw)
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
reply other threads:[~2026-07-17 21:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260717213343.200497-1-namhyung@kernel.org \
--to=namhyung@kernel.org \
--cc=brijesh.singh@amd.com \
--cc=cl@gentwo.org \
--cc=dennis@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox