linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] percpu changes for v5.6-rc1
@ 2020-02-03 21:04 Dennis Zhou
  2020-02-03 22:35 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Zhou @ 2020-02-03 21:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Tejun Heo, Christoph Lameter, linux-mm, linux-kernel

Hi Linus,

This pull request separates out variables that can be decrypted into
their own page anytime encryption can be enabled and fixes __percpu
annotations in asm-generic for sparse.

Thanks,
Dennis

The following changes since commit aedc0650f9135f3b92b39cbed1a8fe98d8088825:

  Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (2019-12-04 11:08:30 -0800)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.6

for you to fetch changes up to 264b0d2bee148073c117e7bbbde5be7125a53be1:

  percpu: Separate decrypted varaibles anytime encryption can be enabled (2020-01-31 11:15:59 -0800)

----------------------------------------------------------------
Erdem Aktas (1):
      percpu: Separate decrypted varaibles anytime encryption can be enabled

Luc Van Oostenryck (1):
      percpu: fix __percpu annotation in asm-generic

 include/asm-generic/percpu.h | 10 +++++-----
 include/linux/percpu-defs.h  |  3 +--
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h
index c2de013b2cf4..35e4a53b83e6 100644
--- a/include/asm-generic/percpu.h
+++ b/include/asm-generic/percpu.h
@@ -74,7 +74,7 @@ do {									\
 
 #define raw_cpu_generic_add_return(pcp, val)				\
 ({									\
-	typeof(&(pcp)) __p = raw_cpu_ptr(&(pcp));			\
+	typeof(pcp) *__p = raw_cpu_ptr(&(pcp));				\
 									\
 	*__p += val;							\
 	*__p;								\
@@ -82,7 +82,7 @@ do {									\
 
 #define raw_cpu_generic_xchg(pcp, nval)					\
 ({									\
-	typeof(&(pcp)) __p = raw_cpu_ptr(&(pcp));			\
+	typeof(pcp) *__p = raw_cpu_ptr(&(pcp));				\
 	typeof(pcp) __ret;						\
 	__ret = *__p;							\
 	*__p = nval;							\
@@ -91,7 +91,7 @@ do {									\
 
 #define raw_cpu_generic_cmpxchg(pcp, oval, nval)			\
 ({									\
-	typeof(&(pcp)) __p = raw_cpu_ptr(&(pcp));			\
+	typeof(pcp) *__p = raw_cpu_ptr(&(pcp));				\
 	typeof(pcp) __ret;						\
 	__ret = *__p;							\
 	if (__ret == (oval))						\
@@ -101,8 +101,8 @@ do {									\
 
 #define raw_cpu_generic_cmpxchg_double(pcp1, pcp2, oval1, oval2, nval1, nval2) \
 ({									\
-	typeof(&(pcp1)) __p1 = raw_cpu_ptr(&(pcp1));			\
-	typeof(&(pcp2)) __p2 = raw_cpu_ptr(&(pcp2));			\
+	typeof(pcp1) *__p1 = raw_cpu_ptr(&(pcp1));			\
+	typeof(pcp2) *__p2 = raw_cpu_ptr(&(pcp2));			\
 	int __ret = 0;							\
 	if (*__p1 == (oval1) && *__p2  == (oval2)) {			\
 		*__p1 = nval1;						\
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index a6fabd865211..176bfbd52d97 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -175,8 +175,7 @@
  * Declaration/definition used for per-CPU variables that should be accessed
  * as decrypted when memory encryption is enabled in the guest.
  */
-#if defined(CONFIG_VIRTUALIZATION) && defined(CONFIG_AMD_MEM_ENCRYPT)
-
+#ifdef CONFIG_AMD_MEM_ENCRYPT
 #define DECLARE_PER_CPU_DECRYPTED(type, name)				\
 	DECLARE_PER_CPU_SECTION(type, name, "..decrypted")
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] percpu changes for v5.6-rc1
  2020-02-03 21:04 [GIT PULL] percpu changes for v5.6-rc1 Dennis Zhou
@ 2020-02-03 22:35 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2020-02-03 22:35 UTC (permalink / raw)
  To: Dennis Zhou
  Cc: Linus Torvalds, Tejun Heo, Christoph Lameter, linux-mm, linux-kernel

The pull request you sent on Mon, 3 Feb 2020 13:04:50 -0800:

> git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.6

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/322bf2d3446aabdaf5e8887775bd9ced80dbc0f0

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-03 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-03 21:04 [GIT PULL] percpu changes for v5.6-rc1 Dennis Zhou
2020-02-03 22:35 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).