diff options
Diffstat (limited to 'include/linux/coredump.h')
| -rw-r--r-- | include/linux/coredump.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/coredump.h b/include/linux/coredump.h index ba4b85a6d9b8..1d7399314a89 100644 --- a/include/linux/coredump.h +++ b/include/linux/coredump.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/mm.h> | 5 | #include <linux/mm.h> |
| 6 | #include <linux/fs.h> | 6 | #include <linux/fs.h> |
| 7 | #include <asm/siginfo.h> | ||
| 7 | 8 | ||
| 8 | /* | 9 | /* |
| 9 | * These are the only things you should do on a core-file: use only these | 10 | * These are the only things you should do on a core-file: use only these |
| @@ -11,5 +12,10 @@ | |||
| 11 | */ | 12 | */ |
| 12 | extern int dump_write(struct file *file, const void *addr, int nr); | 13 | extern int dump_write(struct file *file, const void *addr, int nr); |
| 13 | extern int dump_seek(struct file *file, loff_t off); | 14 | extern int dump_seek(struct file *file, loff_t off); |
| 15 | #ifdef CONFIG_COREDUMP | ||
| 16 | extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs); | ||
| 17 | #else | ||
| 18 | static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {} | ||
| 19 | #endif | ||
| 14 | 20 | ||
| 15 | #endif /* _LINUX_COREDUMP_H */ | 21 | #endif /* _LINUX_COREDUMP_H */ |
