Re: warning: cast removes address space '__percpu' of expression
From: Charlemagne Lasse
Date: Sat Mar 30 2024 - 13:43:08 EST
Am Sa., 30. März 2024 um 00:56 Uhr schrieb Charlemagne Lasse
<charlemagnelasse@xxxxxxxxx>:
>
> After switching to linux 6.9-rc1, I get a lot of these errors (when
> compiling with cgcc/sparse):
>
> ./include/linux/netdevice.h:4033:17: warning: cast removes address
> space '__percpu' of expression
>
> This is around code which wasn't changed and which correctly uses the
> per cpu helper. Sparse flags were -Wsparse-all for sparse 0.6.4
> (latest release).
[snip]
This also happens with the newest sparse commit
0196afe16a50c76302921b139d412e82e5be2349