On Tue, Aug 13, 2024 at 07:25:10PM +0200, Uros Bizjak wrote: > Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() functions that > operate on pointers in the percpu address space. > > These functions 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. > > Signed-off-by: Uros Bizjak <ubizjak@xxxxxxxxx> > Cc: Catalin Marinas <catalin.marinas@xxxxxxx> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>