Skip to contentSkip to conversation

usr/include/linux/binfmts.h:5: included file 'asm-x86/exec.h' is not expor

PATCH Al Viro 1 participant 1 message Aug 3, 2012 Kernel janitors

lore
Share & tools
lore

Al Viro

author
#0 lore raw
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 exported usr/include/linux/binfmts.h:5: included file 'asm-x86/exec.h' is not exported usr/include/linux/kexec.h:49: userspace cannot reference function or variable defined in the kernel usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel usr/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...