Re: warning: cast removes address space '__percpu' of expression

From: Charlemagne Lasse
Date: Tue Apr 02 2024 - 05:53:51 EST


Am Di., 2. Apr. 2024 um 11:43 Uhr schrieb Uros Bizjak <ubizjak@xxxxxxxxx>:
[snip]
> Please try the attached patch that informs sparse about this action.

I've tested it using

```
git reset --hard v6.9-rc2
patch -p1 -i ~/p.diff.txt
git clean -dfx
make allnoconfig -j$(nproc)
make kvm_guest.config
make prepare -j$(nproc)
touch include/linux/netdevice.h
make C=1 net/core/dev.o CHECK="sparse -Wcast-from-as"
```

And it seems to work. Thanks