diff options
author | 2024-08-18 23:01:51 +0200 | |
---|---|---|
committer | 2024-09-03 21:15:38 -0700 | |
commit | a759e37fb46708029c9c3c56c3b62e6f24d85cf5 (patch) | |
tree | e147f6993f9c6569e7785d4c7ee7ded4cfccdef6 /mm/filemap.c | |
parent | selftests/mm: remove unnecessary ia64 code and comment (diff) | |
download | linux-rng-a759e37fb46708029c9c3c56c3b62e6f24d85cf5.tar.xz linux-rng-a759e37fb46708029c9c3c56c3b62e6f24d85cf5.zip |
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/20240818210235.33481-1-ubizjak@gmail.com
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions