On Thu, Jul 27, 2023 at 04:50:10PM +0100, Will Deacon wrote:
Looking more closely at this, I see that the bpf and kvm selftests are able to include <linux/compiler.h> directly, so I don't see why we need
Hrm, it does seem like that's on the specific list of headers we can get at. I'm kind of surprised that it's not got dependencies that upset things.
to open-code this here. I also spotted that we've *already* written our own version of this as the 'curse()' macro in selftests/arm64/bti/compiler.h!
That one wasn't originally a kselftst so it'll just have pulled in something from completely outside the kernel build systems.