]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Revert "percpu: add __percpu to SHIFT_PERCPU_PTR"
authorDennis Zhou <dennis@kernel.org>
Mon, 25 Nov 2019 22:28:04 +0000 (14:28 -0800)
committerDennis Zhou <dennis@kernel.org>
Mon, 25 Nov 2019 22:28:04 +0000 (14:28 -0800)
This reverts commit 825dbc6ff7a3a063ea91be7d94af940080b0c991.

I mistakenly applied this and only now have thought about it a little
more and had time to evaluate a kbuild error for dmaengine.

Once we're calling RELOC_HIDE, we're moving back into the __kernel
address space and letting users interact with the actual memory address
rather than in __percpu which is before adding the offsets.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
include/linux/percpu-defs.h

index a49b6c702598264f7d6bc7a4999d65b2cb105367..a6fabd865211f0f00b4c7431d6eced41fdde1fda 100644 (file)
@@ -229,7 +229,7 @@ do {                                                                        \
  * pointer value.  The weird cast keeps both GCC and sparse happy.
  */
 #define SHIFT_PERCPU_PTR(__p, __offset)                                        \
-       RELOC_HIDE((typeof(*(__p)) __kernel __percpu __force *)(__p), (__offset))
+       RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
 
 #define per_cpu_ptr(ptr, cpu)                                          \
 ({                                                                     \