diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-11-26 01:28:04 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2019-11-26 01:28:04 +0300 |
commit | ba30e27405afa0b13b79532a345977b3e58ad501 (patch) | |
tree | 0b60565076e8bea00ca828cec906ff3cd070f099 /include | |
parent | 9e8d42a0f7eb9056f8bdb241b91738b5a2923f4c (diff) | |
download | linux-ba30e27405afa0b13b79532a345977b3e58ad501.tar.xz |
Revert "percpu: add __percpu to SHIFT_PERCPU_PTR"
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/percpu-defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index a49b6c702598..a6fabd865211 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -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) \ ({ \ |