Skip to content

Commit ba30e27

Browse files
committed
Revert "percpu: add __percpu to SHIFT_PERCPU_PTR"
This reverts commit 825dbc6. 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 <[email protected]>
1 parent 9e8d42a commit ba30e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/percpu-defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ do { \
229229
* pointer value. The weird cast keeps both GCC and sparse happy.
230230
*/
231231
#define SHIFT_PERCPU_PTR(__p, __offset) \
232-
RELOC_HIDE((typeof(*(__p)) __kernel __percpu __force *)(__p), (__offset))
232+
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
233233

234234
#define per_cpu_ptr(ptr, cpu) \
235235
({ \

0 commit comments

Comments
 (0)