diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-04 04:51:48 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-03-08 18:21:11 +0300 |
commit | a64b89088bb1413bb84424f0b16a4d1f9bb0e947 (patch) | |
tree | 8f2a3a9dd3423b34a898bfdbb9f43310baf6d637 /include/linux/coredump.h | |
parent | d0f1088b31db2d03497a74ca67755df5515f8ff4 (diff) | |
download | linux-a64b89088bb1413bb84424f0b16a4d1f9bb0e947.tar.xz |
coredump.h: move CONFIG_COREDUMP-only stuff inside the ifdef
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/coredump.h')
-rw-r--r-- | include/linux/coredump.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/coredump.h b/include/linux/coredump.h index 247aae4e69c8..78fcd776b185 100644 --- a/include/linux/coredump.h +++ b/include/linux/coredump.h @@ -7,12 +7,17 @@ #include <linux/fs.h> #include <asm/siginfo.h> +#ifdef CONFIG_COREDUMP struct core_vma_metadata { unsigned long start, end; unsigned long flags; unsigned long dump_size; }; +extern int core_uses_pid; +extern char core_pattern[]; +extern unsigned int core_pipe_limit; + /* * These are the only things you should do on a core-file: use only these * functions to write out all the necessary info. @@ -27,14 +32,9 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start, int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count, struct core_vma_metadata **vma_meta, size_t *vma_data_size_ptr); -#ifdef CONFIG_COREDUMP extern void do_coredump(const kernel_siginfo_t *siginfo); #else static inline void do_coredump(const kernel_siginfo_t *siginfo) {} #endif -extern int core_uses_pid; -extern char core_pattern[]; -extern unsigned int core_pipe_limit; - #endif /* _LINUX_COREDUMP_H */ |