Yes, It's happen in the mainline kernel.I pulled the latest code and habitually compiled samples/bpf, $ git remote get-url origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git$ make -C samples/bpfand the compilation error occurred. I applied this patch and canfix this compilation error.