Re: kernel/bpf/devmap.c:1030:40: sparse: sparse: cast removes address space '__rcu' of expression

From: Luc Van Oostenryck
Date: Tue May 31 2022 - 20:38:47 EST


On Mon, May 23, 2022 at 12:30:14PM +0200, Toke Høiland-Jørgensen wrote:
> kernel test robot <lkp@xxxxxxxxx> writes:
>
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: eaea45fc0e7b6ae439526b4a41d91230c8517336
> > commit: 782347b6bcad07ddb574422e01e22c92e05928c8 xdp: Add proper __rcu annotations to redirect map entries
> > date: 11 months ago
> > config: ia64-randconfig-s031-20220522 (https://download.01.org/0day-ci/archive/20220522/202205222029.xpW3PM1y-lkp@xxxxxxxxx/config)
> > compiler: ia64-linux-gcc (GCC) 11.3.0
>
> Hmm, so this is ia64-only? Some kind of macro breakage? Paul, any ideas?

Hi,

It's surely IA64's cmpxchg() which contains lines like:
_r_ = ia64_cmpxchg8_##sem((__u64 *) ptr, new, _o_);

-- Luc