diff options
Diffstat (limited to 'include/linux/binfmts.h')
-rw-r--r-- | include/linux/binfmts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 37935c2d2e8f..26531f32bbb2 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
@@ -19,6 +19,8 @@ struct pt_regs; | |||
19 | 19 | ||
20 | #ifdef __KERNEL__ | 20 | #ifdef __KERNEL__ |
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/unistd.h> | ||
23 | #include <asm/exec.h> | ||
22 | 24 | ||
23 | #define CORENAME_MAX_SIZE 128 | 25 | #define CORENAME_MAX_SIZE 128 |
24 | 26 | ||
@@ -135,5 +137,9 @@ extern void install_exec_creds(struct linux_binprm *bprm); | |||
135 | extern void set_binfmt(struct linux_binfmt *new); | 137 | extern void set_binfmt(struct linux_binfmt *new); |
136 | extern void free_bprm(struct linux_binprm *); | 138 | extern void free_bprm(struct linux_binprm *); |
137 | 139 | ||
140 | #ifdef __ARCH_WANT_KERNEL_EXECVE | ||
141 | extern void ret_from_kernel_execve(struct pt_regs *normal) __noreturn; | ||
142 | #endif | ||
143 | |||
138 | #endif /* __KERNEL__ */ | 144 | #endif /* __KERNEL__ */ |
139 | #endif /* _LINUX_BINFMTS_H */ | 145 | #endif /* _LINUX_BINFMTS_H */ |