usr/include/linux/binfmts.h:5: included file 'asm-x86/exec.h' is not expor
Quoted 9 lines · Fengguang Wu
Hi Al,
Kernel build failed on
tree: git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git execve2 head: 760c0f5513e79608f9316997cecf6fcf42f7c386 commit: 8c1fa890710d4b7d52cbdab27b2a9231aad012eb [2/11] the only place that needs to include asm/exec.h is linux/binfmts.h config: x86_64-allmodconfig (attached as .config)
Quoted 7 lines
All errors/warnings:
usr/include/linux/binfmts.h:5: included file 'asm-x86/exec.h' is not exportedusr/include/linux/binfmts.h:5: included file 'asm-x86/exec.h' is not exportedusr/include/linux/kexec.h:49: userspace cannot reference function or variable defined in the kernelusr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernelusr/include/linux/string.h:8: userspace cannot reference function or variable defined in the kernel
IOW, we need to take that include below #ifdef __KERNEL__
Done...