Commit ba30e274 authored by Dennis Zhou's avatar Dennis Zhou

Revert "percpu: add __percpu to SHIFT_PERCPU_PTR"

This reverts commit 825dbc6f.

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: default avatarDennis Zhou <dennis@kernel.org>
parent 9e8d42a0
...@@ -229,7 +229,7 @@ do { \ ...@@ -229,7 +229,7 @@ do { \
* pointer value. The weird cast keeps both GCC and sparse happy. * pointer value. The weird cast keeps both GCC and sparse happy.
*/ */
#define SHIFT_PERCPU_PTR(__p, __offset) \ #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) \ #define per_cpu_ptr(ptr, cpu) \
({ \ ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment