diff options
| author | Uros Bizjak <[email protected]> | 2024-08-18 23:01:51 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-03 21:15:38 -0700 |
| commit | a759e37fb46708029c9c3c56c3b62e6f24d85cf5 (patch) | |
| tree | e147f6993f9c6569e7785d4c7ee7ded4cfccdef6 /tools/perf/scripts/python | |
| parent | 2f4db2861013fcfb4be11d0dc176271ae566241c (diff) | |
err.h: add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macros
Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macros that operate
on pointers in the percpu address space.
These macros remove the need for (__force void *) function argument casts
(to avoid sparse -Wcast-from-as warnings).
The patch will also avoid future build errors due to pointer address space
mismatch with enabled strict percpu address space checks.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Uros Bizjak <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions